Click here to Skip to main content
16,022,418 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends

How to adjust screen resolution automatically for windows application. i want to try like this :


this.Location = new Point(0, 0);

//this.Height = System.Windows.Forms.Screen.AllScreens[0].WorkingArea.Height;
//this.Width = System.Windows.Forms.Screen.AllScreens[0].WorkingArea.Width;

            int iWindowWidth = Screen.PrimaryScreen.Bounds.Width;
            int iWindowHeight = Screen.PrimaryScreen.Bounds.Height;
            this.Size = new Size(iWindowWidth, iWindowHeight);
but it is not working
please help me.
Posted
Updated 27-Mar-11 21:47pm
v3

1 solution

Hope Link1[^]and Link2[^] might help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900