Adapting Form And Its Controls To Screen Resolution
May 26, 2012I was wondering if, using API, there is a simple way to adapt exactly a form and its controls to the screen resolution.
View 12 RepliesI was wondering if, using API, there is a simple way to adapt exactly a form and its controls to the screen resolution.
View 12 RepliesI am trying to write program in vb 2010 that is independent of screen resolution. I am designing the program in 1920*1080 and when I change the resolution to e.g. 800*600 everything blows up and the program won't fit the screen. I have tried three different approaches:
loop through all controls and scale their position and dimensions
Friend Sub ResizeControl(ByRef ctl As Control)
'---------------------------- GET SCALES -------------------------
Dim DesignScreenWidth As Integer = 1920
Dim DesignScreenHeight As Integer = 1080
[Code] .....
None of these methods has worked for me. One thing I figured out was that my main form is larger than 800*600 pixels so when I run the designer in 800*600 resolution VS cut down the with to 812px so my calculations of with and thus scaling ratio becomes wrong. This error goes applies for all three methods.
i have a win form application in vb.net. it works fine but trouble comes when i change my screen resolutions.
How to resize my controls and form according to my screen resolution...?
how to adjust my controls according to screen size...?
I am working on an program and I need it to change the size on the form and the button etc when its ran on a different resolution then it was coded on. Is there anyway to do this easy or do I have to hard code it on two different and change it by like a button etc? I am working with a 1024 X 780 and a 1240 X 1024.
View 8 RepliesI have a very high screen resolution on my laptop: 1400x1050.My colleague tried it out on his laptop (which had lesser resolution), and the application did not fit on his laptop. The buttons were dragging out of the screen space.So, I want my application to automatically resize/adjust based upon the screen resolution.I don't want to use Maximized screen option and don't want to change user's pc settings.Unfortunatly I am not using Table Layout panel.
View 5 RepliesCan we set the windows form resolution according to pc screen resolution and even the control should be adjusted...
eg.
My screen resolution is 1366 X 768
and my form size is 1254, 709....but I want it so set according to the screen and it will be dynamic...
if I transfer my project to some other pc with lower or higher resolution it should be adjusted....
and suppose I have few controls on the form...will that also be adjusted??
I had designed all forms on 1280/800 screen resolution.
i want set all forms resolution like the current screen resolution of the user,or make the form resolution is dynamic with each resolution of screen for
Wondering if there was a way around the seemingly nonsensical editor changing of the maximum size form you can edit/create to some value approaching the screen resolution you are working on. This is a P.I.T.A. as I often edit pages on a laptop with a smaller max resolution than the monitors I typically do layouts for.Any way to by pass this to let me edit larger screen sizes on my laptop?
View 1 RepliesI've got a problem with vb 2010: If I make a new form and add every button and make a background for the application and built my app, I can't open normal on a other pc. It change the ordening of my buttons and the other pictur boxes I've add. My screen resolution is 1920x1080. The other pc has a screen resolution off 1024 X 768. What I wanna ask is: whitch code must I add on "form1"?
View 2 Replieshow to enable the scroll ..
View 5 RepliesI know I can find the screen resolution of the Primary screen easily, but I want to find the resolution of the screen that my form is currently sitting in (this is not the same on my setup I have three screens with two different resolutions)the form could span more than one screen so I would be happy with finding the screen that contains the most area of the form/the top left corner.Is there a simple way to do this? I can enumerate the screens, but then working out where my form is sitting within this is tricky:[code]
View 1 RepliesI'm making an application in vb.net and during the development has arisen the need to make a form greater than the screen resolution.For example:
Screen resolution: 1280x800 and 2560x1600 sizes form
Obviously, the form should
not have scrollbars.
How to re-size all control within form to fit different screen resolution?
any solution on this? my control always run out of the screen size... can it re-size every control before the user can see the form load..?
1. Is there anyway to make an application look as though it has been set to a screen resolution of 1024 x 768 when the true resolution different?
2. I am developing my app using a widescreen monitor. What dimensions does the form need to be set to so that it looks exactly the same on a normal & widescreen monitor?
I have designed a complaints form for my work (free of charge just for my cv). I designed the form for the resolution 1280 x 1024. My problem is when a user with a smaller resolution say 800 x 600 uses it. The form will be out of sync with the screen as shown below (tested on my on computer). So I am wondering is there a way to test the screen size of the users computer then readjust the size of my controls according to the size of the screen. By the way all of my controls are anchored so that they stay in the same place.
[Code]...
Is it possible to create a form bigger than my screen resolution ?. My screen is 1680 x 1050 but i need to create a form of 1920 x 1080.
View 6 RepliesIn my application,I placed the user control on a panel,I want to resize that control on a panel automatically according to different screen resolution.
View 6 RepliesI was an idiot and designed my VB app on a 17inch monitor in a 1280X1024 resolution completely forgetting about what it would like on another machine. This might be a long shot, but is there an easy way to get the resolution of the users monitor and re-size the controls and form accordingly?
View 4 RepliesWhen ever my program runs how can I set my form to Current Screen resolution or change to 1024/678 pixiels.
View 9 RepliesI designed my form on my machine running 1282x1024. It works fine. I installed it on a client machine running 1024x768 and the form goes off the bottom edge of the screen. I set autoscale on the form to none, font, dpi, and inherited, changed my screen resolution and ran the program. It always looks the same, off the bottom os the screen. I tried Autoscroll on with no effect.
My reading of the documentation seems to indicate these two items are more for the system font size and the screen's dpi setting, not the screen resolution but I can't find anything else to work with. How do I make the form and everything on it change size based on the screen resolution?
I'm setting form sizes according to user screen resolution and I think I need design no smaller than 1024 x 768 these days. Using the following code I set my first form and use Anchor settings to resize and maintain controls. Does resize affect StartupPosition in other forms and what do you think is the best StartupPosition to Show the next (smaller) forms? I have a feeling I should have created child forms but simply added forms to the project as I needed them. For example, the first code example does not take account of the WIN7 Task Bar.
HTML
Dim x As Integer = My.Computer.Screen.Bounds.Width, y = My.Computer.Screen.Bounds.Height
Me.Size = New Size(x, y)
A smaller form loads with the same code slightly varied, but the reduction is not taking account of the screen resolution. Is there a way of reducing by percentage?
HTML
Dim x As Integer = My.Computer.Screen.Bounds.Width, y = My.Computer.Screen.Bounds.Height
X = X -100
y = y - 100
Me.Size = New Size(x, y)
I want to resize font of all windows form control when i change screen resolution..I am able to resize all the controls but font resize driving me nuts..
View 7 RepliesHow to auto resize form, image and controls on different resolution using visual basic dotnet code.
View 1 Replieshow do i set my vb2008 form in such away that the form size aint affected by screen resolution settings
View 3 RepliesI have to know how to set system resolution of all tools in forms, which i using for my application.
I attached two screen shots. When i work my application with my system, form window and their tools placed correctly with my monitor fit(15 inch monitor).
But when i work my application in 21 inch monitor, all tools re arranged and
not in format. post me the code to set resolution as per system??
Anyone knows how to change the Forms and controls of the project as the Screen resolution of the computer changes?
View 1 RepliesI need to print a windows form which contains radio buttons, checkboxes, and other controls.
Printform doesn't work - even with the scrollable option it only prints the visible screen.
The PrintDocument doesn't work, because I can't add controls to it.
I can't capture the screen image, because the form occupies more than the visible screen.
How to get screen resolution?
View 2 RepliesI have a program and I want this to be full screen for all resolution.
How i can do this ?
Current program resolution is: 1000, 780
How to Change Screen Resolution in VB.net?
View 1 Replies