How do I determine which operating system is running
The Environment class in the System namespace has this information. [C#] string versionText = Environment.OSVersion.Version.ToString(); [VB.NET] Dim versionText As String = Environment.OSVersion.Version.ToString() The Version property has member properties such as Major and Minor that give additional information. Note that XP is windows version 5.1
How do I change my screen’s resolution programatically?
You can do so by calling the native ChangeDisplaySetting api. This website at www.omniscium.com provides you an article on how to do it: http://www.omniscium.com/index.asp?page=DotNetScreenResolution
How do I position my form to the bottom right of the screen when it opens up the first time above the system tray?
Do as follows in your Form’s constructor after setting the StartPosition to Manual: [C#] this.SetBounds(Screen.GetWorkingArea(this).Width-this.Width ,Screen.GetWorkingArea(this).Height-this.Height , this.Width, this.Height); [VB.Net] Me.SetBounds(Screen.GetWorkingArea(Me).Width-Me.Width ,Screen.GetWorkingArea(Me).Height-Me.Height , Me.Width, Me.Height)
How do I determine the working area of a screen without the systemtray area?
The Screen.GetWorkingArea(control) will provide you the working area of a screen without the system tray area.
How do I paint in my mdi container, a logo, for example?
You should not try listening to your MDI container Form’s Paint event, instead listen to the Paint event of the MDIClient control that is a child of the mdi container form. This article provides you a detailed example: Painting in the MDI Client Area