November 10, 2008

Screen Bound

This will help you to bound your screen to desktop bound in windows application

int screenWidth = Screen.GetBounds(new Point(0, 0)).Width;
int screenHeight = Screen.GetBounds(new Point(0, 0)).Height;
this.SetDesktopBounds(0, 0, screenWidth, screenHeight);

No comments: