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.
I 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.
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 build an application that is designed to work on a screen resolution of at least 1280x1024. So therefore, when my application starts, I would like for it to check the current screen resolution, if the screen resolution is not what I specify, then a message will ask whether the user wants to change it, if he clicks yes, then the screen resolution will be set to 1280x1024 and then it will reset to the original when the application closes. However, if the desired screen resolution is not available, then an error message will pop up.
I am developing a point of sale for a buddy.The system it will be on will be running nothing but this application. The system SHOULD always stay at 1024, 768 but i like to plan for problems.What I would like to do is on form_load change to 1024, 768. On exit, (for learning sake on my end) I would like to have it set back to the default.
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?
I'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"?
I have two forms. These are a widgets that I made in VB .Net language. But I have a problem, what if the the display setting resolution is change to 800X600, 1024X768, 1280X800 and so fort? How can I maintain the location of my forms? My screen resolution that I'm is 1280X800. I locate the first widget in x.1000, y.20 and the other one is in x.1009, y.325. How can I make this location a generic location for my widgets?
I 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]
I 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 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.
I 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?