Asked by:
Visual C# Samples, Specifications, Quick Reference and Visual C# General FAQ

General discussion
-
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#?
Windows Form
28.Does Application.Exit() method affect FormClosing event?
29.How to perform tasks before the form is closed and how to prevent a form from being closed when the Close button is clicked?
30.How to change the system’s cursor using Visual C#.NET?
31.How to set the cursor of a windows form using Visual C#.NET?
32.How to retrieve a Window Handle in Visual C#.NET?
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.- Changed type Michael Sun [MSFT]Microsoft employee Wednesday, April 8, 2009 3:14 AM Visual C# General FAQ
- Edited by Michael Sun [MSFT]Microsoft employee Friday, April 10, 2009 6:20 AM Edit
- Edited by jialge_msftMicrosoft employee Thursday, April 16, 2009 12:03 PM Modify
- Edited by David M Morton Monday, August 31, 2009 2:29 PM Too many stickies
- Edited by Ji.Zhou Monday, February 1, 2010 3:02 PM re-align
Wednesday, April 8, 2009 2:00 AM
All replies
-
You can download LINQ samples as well as others here for Visual Studio 2008:
Visual Studio 2008 Samples- Charlie
- Edited by OmegaMan Monday, February 2, 2009 8:58 PM Updated the link removed beta
- Merged by David M Morton Monday, August 31, 2009 2:28 PM Similar content
Wednesday, March 7, 2007 2:23 AM -
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 by David M Morton Monday, August 31, 2009 2:24 PM Fits with the FAQ
Wednesday, September 19, 2007 8:17 PM -
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.Thursday, April 2, 2009 2:40 PM -
The original post seems corrupted and cannot be edited. Adding three FAQ items:
10. What are the differences between dynamic and object keywords?
11. What are the differences between var and dynamic keywords?
12. How do I remove an item in from a generic list inside a foreach loop?
Please remember to mark the replies as answers if they help and unmark them if they provide no help.Sunday, June 20, 2010 12:12 PM -
Additional references
- Getting started with C# This tutorial is aimed at people who are learning C# for the first time. No prior programming knowledge is required, but if you're coming from another language, many of the concepts will already be familiar to you and you should be able to move through the tutorial more quickly. You start off by answering two questions "previous programming experience and preferred development tool.
- New language features in C# 6.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
VB Forums - moderator
- Edited by KareninstructorMVP Sunday, November 13, 2016 5:54 PM
Sunday, November 13, 2016 5:53 PM -
Reference:
- New Features in C# 7.0
- What's new in C# 7 This covers C# 7.
- What's new in C# This page describes the latest features in the C# language.
Thanks,
Sabah Shariq[If a post helps to resolve your issue, please click the "Mark as Answer" of that post or click
"Vote as helpful" button of that post. By marking a post as Answered or Helpful, you help others find the answer faster. ]
- Edited by Sabah ShariqMVP Tuesday, March 14, 2017 2:37 PM
Tuesday, March 14, 2017 2:28 PM