Some important property for creating the windows application

Posted by Neeks under Windows Forms category on | Views : 1897
There are some properties which will make your application more user friendly.

//This will help to keep the Form always on the Top of all the Windows
//There may be case that there are more than one windows in a screen which
//are having the same property of Always on Top ser as True. In this scenario
//Both the windows will be top of all other windows in your screen. But these two
//Windows will be on top as you select it other will be overplayed.
this.TopMost = true; //This is used for Always on top
Screen.PrimaryScreen.Bounds.Height; // To get the height of the window as per your resolution
Screen.PrimaryScreen.Bounds.Width; // To get the width of the window as per your resolution

Comments or Responses

Login to post response