Visual C# Samples, Specifications, Quick Reference and Visual C# General FAQ
I am excited to announce the availability of the following FAQ paper which lists some of the questions frequently asked by the Visual C# General forum members. This material should not be considered as a complete coverage of the frequently asked questions, but it tries to capture the high-level features with some depth in the Visual C# .NET General areas.
On behalf of the whole forum support team, I want to thank Mads Torgersen who precisely reviewed the FAQ entries with commendable thoroughness. I also want to thank the Visual C# team for their ceaseless supports and advocates of this work. And finally I want to thank all C# forum members who actively participate in this community and help others. If you have any feedback, please send mail to MSDNMG@microsoft.com.COM Interop
1. Can base/derived classes be exported to COM?
2. How do I import a Type Library as an Assembly?
P/Invoke
C# Language Features
4. What is the difference between const and static readonly?
5. What are implicit type var and Anonymous Types?
6. What are Object Initializers and Collection Initializers?
7. What are Lambda Expressions?
8. What are Extension Methods?
9. What character escape sequences are available in C#?
10. What's the difference between string and System.String?
Application Configuration File and Application Settings
11. How do I (update/insert/remove) the config file during runtime?
12. How do I modify the settings value during runtime?
Process
13. How do I set the process priority?
14. How do I capture a screenshot of a process’s main window?
15. How do I redirect standard I/O?
Low Level Hooks in C#
16. How do I set a low level mouse hook and keyboard hook in C#?
XML Serialization
17. How do I do XML serialization of classes with static properties in C#?
WebBrowser
18. How do I prevent a new page from being opened outside the WebBrowser?
19. How do I block specific URLs in the WebBrowser?
Project Resource
20. How do I read *.resx files and create *.resources files in C#?
21. How do I use .NET Reflection to inspect a generic type object?
22. How do I automate a managed application using Reflection?
Windows Management Instrumentation (WMI)
23. How do I retrieve hardware information from a remote machine via WMI?
GDI+
24. How do I rotate or flip images?
25. How do I draw an ellipse with mouse down, move, and up actions in a Windows Forms application?
Communication between different Forms and Applications & Application Automation
26. How do I input to another application?
27. How do I maximize/minimize applications programmatically in C#?
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- Edited byLingzhi SunMSFT, ModeratorFriday, April 10, 2009 6:19 AMEdit
- Changed TypeLingzhi SunMSFT, ModeratorWednesday, April 08, 2009 3:14 AMVisual C# General FAQ
- Edited byDavid M MortonMVP, ModeratorMonday, August 31, 2009 2:25 PMMerging two similar threads.
- Edited byDavid M MortonMVP, ModeratorMonday, August 31, 2009 2:29 PMToo many stickies
- Edited byJialiang Ge [MSFT]MSFT, ModeratorThursday, April 16, 2009 12:03 PMModify
- Edited byLingzhi SunMSFT, ModeratorFriday, April 10, 2009 6:20 AMEdit
All Replies
You can download LINQ samples as well as others here for Visual Studio 2008:
Visual Studio 2008 Samples- Charlie
- Merged byDavid M MortonMVP, ModeratorMonday, August 31, 2009 2:28 PMSimilar content
- Edited byOmegaManMVP, ModeratorMonday, February 02, 2009 8:58 PMUpdated the link removed beta
- This is the document which covers all the C# language specifications for each version 1 to 3.0. Keep in mind this document targets .Net 3.5 and not .Net 3 or previous.
- Merged byDavid M MortonMVP, ModeratorMonday, August 31, 2009 2:24 PMFits with the FAQ
- Thank you Charlie! The samples are very useful.
I'd also like to share some Visual Studio 2008 samples:
All-In-One Code Framework
It not only has examples for LINQ, but also examples for Winform, Office dev, COM, Library, IPC and RPC, other data access techs, and so on. The sample code project is live, and our passion is to cover all Microsoft dev techs. For more info, please read the introduction of the project.
Regards,
Jialiang Ge
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.


