Quick C# Project Documentation in Visual Studio
To quickly create XML documentation for your .NET classes during every build, open the project Properties, click the Build tab, scroll down to the Output section, and check the “XML
To quickly create XML documentation for your .NET classes during every build, open the project Properties, click the Build tab, scroll down to the Output section, and check the “XML
Copying and pasting several sections of a file to another location is a common operation that usually ends up wasting a lot of time. But rather than copying each section
To avoid problems, you should never compare a string variable with a string constant, because string variables may have a null value, in which case your code will throw a
In modern versions of Windows (XP, Vista, and beyond), the API call SetForegroundWindow() will bring the specified window to the foreground only if it’s owned by the calling thread. The
The following code shows how you can use the WebClient class to obtain data from a URL and save it to a file: System.Net.WebClient client = new System.Net.WebClient();byte [] bytedata
To send email over SMTP asynchronously, create a SmtpClient, call its SendAsync method, and add a SendCompleted event handler to your code: //Call the SmtpClient SendAsync method SmtpClient client =
Suppose you have a CSS style defined as class=”myClass” as shown below: Now suppose you want to know exactly how the myClass style definition is defined. Just place your cursor
Error: Undeclared Identifier Example error message: doy.cpp: In function ‘int main()’: doy.cpp:25: ‘DayOfYear’ undeclared (first use this function) doy.cpp:25: (Each undeclared identifier is reported only once for each function it
You can use the following server-side code to get the name of the currently executing ASP.NET page (e.g. default.aspx, hello.aspx). string sPagePath = System.Web.HttpContext.Current.Request.Url.AbsolutePath; System.IO.FileInfo oFileInfo = new System.IO.FileInfo(sPagePath); string