Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » .NET Basics   (RSS)
When closing your application from code, for example in the File | Exit menu you should use Form.Close() (ie this.Close() or Me.Close) opposed to Application.Exit(). When calling Application.Exit everything is told to stop immediately and then the appplication Read More...
When an exception occurs is thrown in your application, but is never caught the application ends up crashing. Not exactly a user friendly application. So that you can better handle these unhandled exceptions and at the minimum close the application gracefully Read More...
I was just trying to open a web browser to a specific url when a user clicks a button in my application and it was so easy. You can use the System.Diagnostics.Process class to start an application as follows: Process.Start( fileName ); The cool thing Read More...
Have you ever needed to sort a collection that contained data that was not a string or a number? By simply implementing the System.Collections.IComparer interface you have to power to sort any object anyway you want. Here is an example of sorting an ArrayList Read More...
 
Page view tracker