Resize of Form according to System Resolution
-
I have created a form in the Resolution of my system as 1024 X 768 Pixels. But when I submit the project at the client side the Resolution is some 800 X 600 Pixels. In some other different Resolution is there. How can I change my Form Dynamically according to the Resolution present in the System where we are using. Thanx in advance
Priya
-
I have created a form in the Resolution of my system as 1024 X 768 Pixels. But when I submit the project at the client side the Resolution is some 800 X 600 Pixels. In some other different Resolution is there. How can I change my Form Dynamically according to the Resolution present in the System where we are using. Thanx in advance
Priya
Hi This May Useful for you. Width Of Screen In Pixel: Screen.Width / Screen.TwipsPerPixelX Height Of Screen In Pixel: Screen.Height / Screen.TwipsPerPixelY For Example : Private Sub Form_Load() Me.Width = Screen.Width Me.Height = Screen.Height Me.Top = 0 Me.Left = 0 End Sub Good Luck Mogtabm
-
I have created a form in the Resolution of my system as 1024 X 768 Pixels. But when I submit the project at the client side the Resolution is some 800 X 600 Pixels. In some other different Resolution is there. How can I change my Form Dynamically according to the Resolution present in the System where we are using. Thanx in advance
Priya
-
I have created a form in the Resolution of my system as 1024 X 768 Pixels. But when I submit the project at the client side the Resolution is some 800 X 600 Pixels. In some other different Resolution is there. How can I change my Form Dynamically according to the Resolution present in the System where we are using. Thanx in advance
Priya
I have created a form in the Resolution of my system as 1024 X 768 Pixels. But when I submit the project at the client side the Resolution is some 800 X 600 Pixels. In some other different Resolution is there. How can I change my Form Dynamically according to the Resolution present in the System where we are using. When I Use this Code: Width Of Screen In Pixel: Screen.Width / Screen.TwipsPerPixelX Height Of Screen In Pixel: Screen.Height / Screen.TwipsPerPixelY For Example : Private Sub Form_Load() Me.Width = Screen.Width Me.Height = Screen.Height Me.Top = 0 Me.Left = 0 End Sub Displaying of Form is OK. But controls are missing. What I need is It has to adjust the controls also according to the System Resolution and all the content present in the Form should be displayed in the Resolution present in the System. controls as well as form should be resized according to the System resolution.
Priya
-
I have created a form in the Resolution of my system as 1024 X 768 Pixels. But when I submit the project at the client side the Resolution is some 800 X 600 Pixels. In some other different Resolution is there. How can I change my Form Dynamically according to the Resolution present in the System where we are using. When I Use this Code: Width Of Screen In Pixel: Screen.Width / Screen.TwipsPerPixelX Height Of Screen In Pixel: Screen.Height / Screen.TwipsPerPixelY For Example : Private Sub Form_Load() Me.Width = Screen.Width Me.Height = Screen.Height Me.Top = 0 Me.Left = 0 End Sub Displaying of Form is OK. But controls are missing. What I need is It has to adjust the controls also according to the System Resolution and all the content present in the Form should be displayed in the Resolution present in the System. controls as well as form should be resized according to the System resolution.
Priya
-
I have created a form in the Resolution of my system as 1024 X 768 Pixels. But when I submit the project at the client side the Resolution is some 800 X 600 Pixels. In some other different Resolution is there. How can I change my Form Dynamically according to the Resolution present in the System where we are using. When I Use this Code: Width Of Screen In Pixel: Screen.Width / Screen.TwipsPerPixelX Height Of Screen In Pixel: Screen.Height / Screen.TwipsPerPixelY For Example : Private Sub Form_Load() Me.Width = Screen.Width Me.Height = Screen.Height Me.Top = 0 Me.Left = 0 End Sub Displaying of Form is OK. But controls are missing. What I need is It has to adjust the controls also according to the System Resolution and all the content present in the Form should be displayed in the Resolution present in the System. controls as well as form should be resized according to the System resolution.
Priya
What I have done in the past is design the form at the lowest usable resolution, then in the same routine that sets the size of the form I figure out the difference in the screen sizes and iterate through the forms control collection and set the position and size to what I want it to be. You also will need to adjust your font size for each control -- modified at 12:32 Monday 12th March, 2007