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


ADVERTISEMENT

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

Launching Multiple Files From Just One EXE Possible?

Nov 18, 2010

When I click a button to Shell something, instead of having to specify where the exe (or whatever file it might be) is, i was wondering if I could combine it with VB to make it something like this. Shell ("Internet Explorer.exe"). Also, have VB save the file so anywhere I take that single exe file i made with VB, the exe file I want to shell goes with me. So that way I can launch multiple files from just one exe file and not have any directories to worry about.

View 7 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

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

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

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

Wpf - .Net Launching Multiple Command Line Through Process.Startinfo?

May 6, 2011

I'm using VB.Net to launch multiple command line window (same exe file) through Process.StartInfo. I would like to have those windows running at background without hanging main UI thread that launch them and at the same time able to get the output of those external window to show progress at progress bar.Here is a summary of what I'm trying to achieve but need further advise which way is feasible

- launch multiple exe command through Process.StartInfo

- don't want the external exe to hang my main UI thread

- need to get feedback from external exe to update progress bar which is placed at main UI thread

View 2 Replies

VS 2010 'code Library' Launching Multiple .exe Files From One Form?

Apr 22, 2012

I am trying to create a sort of code library in visual basic where the form displays a list box of certain project files in vb that i have made in the past and when clicked, launches the .exe files of those visual basic program project files.I know it does not work the same way as writing/ reading text files to vb and it seems as simple as 'on click, launch .exe of selected string "vb program 1" and so on. I am having trouble getting started on this one. Im sorry I cannot provide any starter code bc I only have a basic understanding of in/out text files which wont work the same way with .exe

View 1 Replies

Saving Window Size And Position Multiple Monitors Toolbar Position Etc.

Aug 24, 2009

I have looking for a tutorial or class that demonstrates more than a trivial example of saving a windows position on closing. The ones I have found don't seem to work on all systems because of:

1. Multiple monitors. (and resolution between those monitors)

2. Toolbar size and position (toolbar is only on the primary monitor, well sometimes)

3. Sometimes the programs dont open on the right monitor they were closed on.

Is there an extensive class or tutorial on all the stuff a programmer needs to get right to have a window size and position persisted between executions?

View 1 Replies

MessageBox And Dual Monitors?

Aug 10, 2010

If a form is being displayed on the secondary monitor, is there a way to make sure that a MessageBox generated by that form will display back on the primary monitor? The form is being displayed over a projection system and some messages do not need to be seen by the audience, just the computer operator.

View 1 Replies

VS 2008 - How To Disable Monitors

Oct 4, 2009

What im trying to do, is have my program run full screen on the primary screen, and diable all other screens. I have it 'full screen' and constantly on top of everything with this

Dim b As Boolean = _
SetWindowPos( _
Me.Handle, _

[code]....

It is in a timer, so its always on top. how do i turn off, or disable all other monitors, besides the primary screen. (How do i check if they have other monitors, and if they do, how many, and disable them all, with exception to the primary screen.)

View 19 Replies

Launching Another .msi From Within .msi?

Feb 26, 2009

I'm using VB.Net 2005 Pro and have created an .msi for my app using the built-in installation deployment project.When the installation is running however (or at the end of the process) I need it to run another .msi which I'll include in my distribution.How would I go about that? I've tried adding a custom dialog to the installer but that won't run another .msi.

View 3 Replies

Launching Exe Using VB?

Apr 6, 2012

i am having difficulty in lunching an application using vb the application i am trying to launch is a "MicroAppache" a distro of the Appache http server Background When the application is launched, it loads also some dll files and other dependencies.When i use this vb

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
System.Diagnostics.Process.Start("C:UsersvidhuDesktopwebserverinDebugMicApamapache.exe")
End Sub

to launch the exe. it doesnt load. instead it throws an error the it cannot find its dependencies. BUT When i place the vb app which launches the appache exe in the same directory as the appache exe. it works fine! It seems that the mapache.exe tries to find its depenancies in the directory where the launcher is and not in the directory he is in.Example If the launcher is located in:

C:launcher
and the Apache Server is located in
C:launcherapache
it will not work because it tries to find the other files it needs in
C:launch

If the launcher is located in:

C:launcherapache
and the Apache Server is also located in
C:launcherapache
it Will work

View 2 Replies

API Or Similar To Set Active Displays(monitors)?

Apr 27, 2010

Basically I'm trying to change the both if one display(monitor) is active and either turn off all active to displays to one display or change to extended display. Is there any api or similar to do this? My target OS is Windows 7. I'm making a program that can change one active display to having extended displays and vice versa. d. I use Visual Studio 2008 Professional or 2010 Ultimate Beta 2 with Visual Basic Settings.

View 1 Replies

Controling Which Monitor When Dual Monitors

Oct 27, 2011

I just got this really cool 9" monitor (USB attached) which I will be using for dialogs in my vb application. Can someone tell me why this code displays on both machines? if I change screen=AllScreens(1) to (2) the form is only shown on the primary but I want to show it on the very cool USB screen.

[Code]....

View 3 Replies

VS 2008 Scaling The Screens For Different Monitors

Mar 5, 2010

I am new with VB.NET 2008 and I would like to know how to make a project so the forms will show correctly on various sizes of monitors. Do you have to put code in every form for this?

View 1 Replies

Launching A .lnk Using Shell

Jul 26, 2010

I can create a shortcut using this code:

Dim sFolder As String, sTarget As String, sAppName As String
Dim oShell As New WshShell
Dim oShortcut As WshShortcut

[Code]....

View 5 Replies

Launching A Application Using A .vbs?

Dec 14, 2011

This is probaly a simple question, I am not a programmer I am a systems admin. I am trying to launch a application from a visual basic script. Everytime I run the script looks for the application in whatever folder the script is sitting in. If ut the script in the folder where the executable is it works. Unfortunatley this script need to run from users temp directories. What am I doing wrong'

' *****Declaring variables*****
Option Explicit
' Comment the next line out if you are not getting this to work and you need to debug.

[code]....

View 2 Replies

Launching An App With Parameters?

Mar 8, 2009

Okay, I know how to launch a file with its associated app:Process.Start("File.mp3")And I know how to launch an executable: Process.Start("program.exe")This is the best I've been able to come up with for starting an executable with parameters:Process.Start("program.exe", "@ 'List of command line parameters'")Will that work?

View 2 Replies

Launching Applications Using WMI?

Mar 12, 2010

I am writing a basic little program. Amongst everything, my program will let you install printers remotely, To cut a long story shot I don't want to use the rundll32 shortcut to install as you can only remove the printer using rundll32 again which I don't want.

The way I wanted to do it is create a VBS script and execute it remotely using psexec. This didn't work for some reason, locally the script works fine but when executing it remotely the script runs but doesn't perform any of the actions inside the script.

The only other option I can think of is launching the VBS via WMI. I have done a bit of research and I cant seem to find any VB code that does anything similar.

View 2 Replies

Launching Programs From DVD?

Sep 24, 2010

I was wondering if someone could help. I have a little vb.net program, an exe, a pdf and a pps all burned on a DVD.My vb.net program will autorun and I have command buttons to open each of the other items from the DVD.I can open all items if I use the proper path but not all rom drives are the same. I have searched for this a lot and there are a lot of inguiries regarding the same but none of the solutions seem to work.I have a work around for D:\ and E:\ drives:

Try
Process.Start("D:\MyPresentation\BHW.pps")
Catch
Process.Start("E:\MyPresentation\BHW.pps")
End Try

I use this for each command button.I have tried Process.Start(Application.Startuppath & "\MyPresentation\BHW.pps") to no avail.

View 9 Replies

[2005] Launching Another .msi From Within .msi!?

Feb 25, 2009

I'm using VB.Net 2005 Pro and have created an .msi for my app using the built-in installation deployment project.

When the installation is running however (or at the end of the process) I need it to run another .msi which I'll include in my distribution.

View 3 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







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