Determine Local Screen Resolution When Using Multiple Monitors?

Feb 4, 2011

I have an application that produces a form whose objects are scaled to the width and height of the primary monitor whose parameters are obtained from:

Dim ScreenWidth As Integer = Screen.PrimaryScreen.Bounds.Width
Dim ScreenHeight As Integer = Screen.PrimaryScreen.Bounds.Height

So far, the program works fine. A possible problem arises when multiple monitors are being used that do not share the same resolution. For example, if the 2nd monitor has a low resolution, then the form is cut-off.

I'd like to:

1.) determine that more than half the form has been moved to another monitor

2.) determine the resolution on the second monitor.

I suspect that the following command will give me all the dimensions that I need:

Dim ScreenWidthUsed As Array = Screen.AllScreens

In which case I just need to determine the screen that is hosting more than 1/2 the form.

View 3 Replies


ADVERTISEMENT

Make An Application Look As Though It Has Been Set To A Screen Resolution Of 1024 X 768 When The True Resolution Different?

Oct 2, 2009

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?

View 1 Replies

Screen Resolution - Change The Size On The Form And The Button When Its Ran On A Different Resolution

Oct 22, 2007

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 Replies

Change Resolution Of Form Based On Screen Resolution

Jan 10, 2011

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.

View 5 Replies

Change User Control Resolution According To Screen Resolution?

Dec 29, 2010

In 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 Replies

Setting Windows Form Resolution According To Screen Resolution?

Jun 18, 2012

Can 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??

View 6 Replies

VS 2010 Set Form Resolution Like Current Screen Resolution

Dec 20, 2010

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

View 6 Replies

Addressing Individual Monitors In Dual Screen?

Jul 8, 2009

I am working on a custom bulletin board system for my company. The idea is to have a program running that displays a full screen bulletin board on many monitors around our facility. I wrote a VB client that pulls from a server and displays a single board perfectly - I am wondering how to expand this.

View 10 Replies

How Can It Full-screen If The Computer Has Dual Monitors

Nov 5, 2009

i've managed to have the form in fullscreen.. How can it fullscreen if the computer has dual monitors?

.MaximizeBox = False
.MinimizeBox = False
.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
.WindowState = System.Windows.Forms.FormWindowState.Maximized

View 2 Replies

VS 2010 Detect All Touch Screen Monitors?

Oct 4, 2010

I recently bought this multi-touch monitor (writing on it right now :P), and am creating an application for it. Now I need to detect which screens are touch-enabled. For example, I have the touch screen as my main monitor now, but I also have a secondary regular screen, I need the aplication to be able to detect which monitor has a touch screen, EVEN WHEN THE TOUCH SCREEN IS THE SECONDAY NONITOR!

View 4 Replies

Multiple Monitors Launching?

May 15, 2010

I have a dual-monitor setup. When I launch the main program, I need to make sure that it always launches in "Screen 1". I have a button within the program that launches another fullscreen window and I need this to always launch in the next available screen (read: not covering the main program window)I am using the System.Windows.Forms.Screen class to try to accomplish this and have have had about 80% success. I can successfully test for multiple monitors (which enables the button). When they click it, I can get it to always launch in the second screen. The problem I'm encountering while testing is the main program is launching in Screen 2, so the second window covers it.

Here's what I'd like to accomplish ultimately: I would like to always launch my program in Maximized stated (and disable resizing,
minimizing/maximizing is ok, just not double-clicking titlebar to resize) in the primary monitor (where Taskbar is being displayed). Then, when the button within the program is pressed, it launches the new window in the NEXT available monitor in Maximized stated.

View 15 Replies

Multiple Monitors With Forms?

Jan 16, 2012

have a question. The scenario is this Main monitor (17 inch) is used for POS system.Will have at least 2 more monitors (50 inch tvs used for digital menu)I want the main pos program to be able to set what is written there (easy on a form) but have different forms to ALWAYS go onto one of the tvs (they would be plugged in via VGA).

I have read some examples but I havent seen anything with different size monitors.How can i ensure that the main program runs on the 17 inch screen while the 2 forms of the menu will display on tv1 and tv2 and the same tv each time?

View 3 Replies

Control Multiple Monitors From My Application?

Aug 11, 2009

I have build custome windows in my application with cust contorl box on the top right corner. Minimimize, maximaize and close button are made by me.

I want to make another button beside that one which will control displaing of windows in multiple monitors environment. So, cllick on that button will list monitors and I send that window to second monitor.

View 2 Replies

Show Same Form On Multiple Monitors?

Aug 13, 2010

I am creating a Jeopardy type game and I want to be able to have the same form show on multiple monitors at times and at other times show a form only on one monitor. I have no problem getting a form to show up on the second monitor, but when I try to show the same form on multiple monitors I run into problems.[code]...

View 3 Replies

Calculate Display Size For Multiple Monitors?

Sep 23, 2011

I'm trying to calculate the size of multiple monitors together, like the display size. This is an example of what I am talking the Size of the Virtual Screen"). I tried the code, with no luck. The WinAPI didn't seem to do anything, but take space in my code edit

View 1 Replies

Detecting Multiple Monitors & Centering Different Forms?

Oct 25, 2009

Basically, I have a program that uses up one Monitor (With maximize/minimize/etc options), and I'm going to develop another window that by default, you'll have to swap to. But, if there are two or more monitors detected, throw the 2nd form on the 2nd monitor.

I have found a way to detect multiple monitors (Using the SystemInformation Class to return the monitor count), but it's placing the form on the other monitor that's the problem.

View 2 Replies

VS 2008 Multiple Monitors - Detect And Save Configuration

Oct 24, 2011

New to these forums but have been a lurker for a while. I searched through some "multiple monitors" threads but didn't find anything that fit my current issue, so I figured I'd pose it in a new thread. We have users with 4 monitor setups that are very particular about their screen settings. When we have to replace a PC for whatever reason, it is always a hassle getting their screen configurations the way they were prior to the switch. Is it possible to create a small VB app that will scan their current configuration, save a "settings" file, and re-apply the settings on the new PC? What I mean by configuration is screen resolution, setting the primary monitor, etc. Theoretically this sounds like it can be done, but I wanted some opinions on it.

View 1 Replies

Get My Screen Resolution?

Dec 29, 2010

How to get screen resolution?

View 2 Replies

Maximized Window Size - For Multiple Users (Computers/Monitors)?

Dec 13, 2009

Maximized Window Size - For Multiple Users (Computers/Monitors)

View 1 Replies

Maximized Window Size For Multiple Users (Computers / Monitors)

Jul 12, 2009

Say you have a form that is designed to be maximized on startup. Now, on the programmer's computer (mine), it looks good. But going from user to user, the dimensions of monitors, as well as the resolution each user has on their computer/monitor will vary.Here is the question: If you want to have an application designed to be in a maximized window, how do you ensure that it looks the same on each and every computer/monitor that will be using it. Controls, and everything else that would normally be on the form.

View 5 Replies

System Tray Icon Not Appearing When Using Multiple Monitors (shell_notifyIcon)?

Aug 9, 2010

My program runs and loads an icon into the system tray, the only way to them open the main MDI is to right click on the icon in the system tray and choose an option from the pop up menu shown. This all works nicely when there is only 1 monitor. As soon as you run this program on a computer with 2 monitors the icon does not show in the system tray.What do I need to do to make it work in this situation. I use shell_notifyIcon API

View 1 Replies

VS 2008 Changing Computer Monitor Size Of Multiple Monitors?

Jun 28, 2010

Now this program will only be used on systems that I produce, and send out. I need to make sure that for any monitor that these people use it will always be at the standard resolution of 1440 x 900..

I have tried setting up profiles with catalyst control panel, but if you plug in a different monitor to the one that was plugged in when you made the profile it wont recognise the screen and the system wont run properly.

So I wanna see if I can change the resolutions of the screen that will be plugged in the monitor slot and also if possible make sure the other extended screen should there resolution of 1024 x 768..how much control can you get over the monitors that are plugged in?

View 3 Replies

Full Screen For All Resolution?

Sep 5, 2011

I 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

View 2 Replies

How To Change Screen Resolution

Oct 30, 2009

How to Change Screen Resolution in VB.net?

View 1 Replies

Center Parent Out Of Screen Resolution?

Jun 21, 2010

well 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 Replies

Changing Screen Resolution With VB 2005?

Mar 25, 2006

I'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]...

View 1 Replies

Checking And Setting A Screen Resolution?

Mar 4, 2012

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 Replies

Control Resize VS Screen Resolution

Mar 26, 2012

i 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 Replies

Detect And Change Screen Resolution

Jul 22, 2009

How 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 Replies

Finding The Original Screen Resolution VB 6

Mar 29, 2012

I 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 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved