VS 2008 Find Out What The Screen Resolution Is And Then Make A Comparison
Jan 25, 2010How do you find out what the screen resolution is and then make a comparison. ie if the resolution is 1024 x 768 do one thing else do another.
View 2 RepliesHow do you find out what the screen resolution is and then make a comparison. ie if the resolution is 1024 x 768 do one thing else do another.
View 2 Replies1. 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 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 RepliesIs there an easy way to find the screen resolution in Windows?
View 2 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.
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 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 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
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 RepliesI'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)
Trying to understand the basics of grid design so how would I make a over sized grid or a grid larger then whats viewable on my screen resolution? Below is a simple chart describeing what i want to make roughly. I would like to build the grid in "blocks".[URL]..
View 16 RepliesI made vb.net program for 1440x900 resolution, if i run my program on 800x600 or 1024x768, my program's resolution is bigger then windows, so i have problem with resolution. Now i want to change my program's size and i am interested in, wich resolution is correct to make program, 800x600 such as minimum?
View 9 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??
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 Replieswell my problem is that when i put center parent its centered from the form that was open obviously but when i put my program after the screen resolution like it cuts more then the half of the program and i open then other form as center parent the form appears like completely touching the end of the screen it doesn't cut offs, i need like if my program is cutting off from screen the second form have to cut off too
View 7 RepliesI'm having a difficult time converting a Windows API call that works fine in VB6 to run in VB 2005 (Windows XP with SP2 in both cases). I reduced the problem code down to its core which is below. I'm trying to change the screen resolution with the ChangeDisplaySettingsEx call; the idea is that on entering the program it shifts to high resolution and at the end it restores the original settings. I left the restore part out because I get the same error. Which is "An invalid parameter was passed in.This can include an invalid flag or combination of flags." I'm trying to use exactly the same parameters, but somewhere in the conversion process from VB6 a fatal change crept in. My guess is that it's either in the ByRef/ByVal or Short/Integer/Long alternatives, or in the conversion of the Devmode structure which included fixed-length strings (OK in VB6 but not allowed in VB.NET). But all my fiddling so far has not produced a solution. I got the same error code back in VB6 when I tried to set a display frequency that was not supported at the resolution I requested, but even leaving the values unmodified (in effect setting them to what they are now, with no change) gives the same error. Any ideas? So far as I can tell, there is no alternative to the API to accomplish this goal; would be interested to know if I missed it.
[Code]...
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.
View 2 Repliesi want to ask about screen resolution and control resize..how can i make my control, like button, textbox, etc resize automatically within any screen resolution?have you guy ever hear about active resize from url...i want my vb net application look like that so if we use ANY resolution, the application we create will not messedit can strecth..i already try dock, anchor, panel, etc, but it cannot work.
View 3 RepliesHow to create a program that detects the screen resolution and change it to 1280x800 or 1024x768? What are the computer requirements to support each of these resolutions. (I don't want for the program to request the user as programs do this especially in Windows Vista, because my program will be created for Windows Vista).
View 8 RepliesI am developing a VB6 application in which i need to know the "original" screen resolution of the monitor. By original i mean the optimum screen resolution and not the one fixed by the user. Watever I have tried fetches the current resolution and not the optimum one.
View 1 RepliesI am developing programms in VFP and i want to handle the screen resolution by program
View 2 RepliesHow to change the system screen resolution in VB 2005 or 2008? As it something to do with this:
Code Block
My.Computer.Screen.Bounds.Width
System.Drawing.Rectangle
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 have an application that needs to run at a particular screen resolution. How do I detect current screen resolution and then change it if it needs to?
View 4 RepliesBasically, we already had a software working in 1024x768 environment. The program however, have a lot of custom controls and forms that cause problem when users run it in a smaller screen resolution (e.g. 800x600).I had tried change the size of the forms, set auto scrolling, Klik.SizeLibNet3 and etc. All of them has too much work involved or can't achieve best result.Is there any way which I can remain the size of my program (include all the forms) and have a container with scrolling to place my program inside? Or is there any other ways that I doesn't need to modify much on my application?
View 12 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 Replies