473,287 Members | 1,663 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

Positioning Msgboxes and Common Dialog Boxes

In VB .Net is it possible to specify a location (x, y) for message boxes and
the common dialog box class like you can do for windows forms? If so, how is
this accomplished?

Thank you,
John
Nov 20 '05 #1
2 1572
The short answer is no.
The longer answer is that this can be accomplished by using Win32 API calls.
However, in practice I have found it to be problematic sometimes and can have
some undesirable side effects.
Some video drivers try to control where things pop-up, especially in the case of
multiple monitors and other cases.
This can cause some real weirdness, or dialogs pop up in one place, then move to
the other, etc.
In the end, I personally have decided it is more trouble than it is worth and
just let them pop-up where they want.
IF I really need something at a particular place, then I make a custom form and
display it where I want.

Gerald

"jcrouse" <me> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...
In VB .Net is it possible to specify a location (x, y) for message boxes and
the common dialog box class like you can do for windows forms? If so, how is
this accomplished?

Thank you,
John

Nov 20 '05 #2
* "jcrouse" <me> scripsit:
In VB .Net is it possible to specify a location (x, y) for message boxes and
the common dialog box class like you can do for windows forms? If so, how is
this accomplished?


You can do that with a Win32 dialog hook (p/invoke on 'SetWindowsHookEx'
etc.).

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John Lauwers | last post by:
Hello, Is there a way to move the commondialog to a specific position ? Greets John
9
by: Bryan R. Meyer | last post by:
Hello Everyone, The problem of browser resizing has become an issue for me. While redesigning my webpage, I set the left and right margins to be auto so that my content would be centered. ...
7
by: Griff Miller | last post by:
Please see http://home.houston.rr.com/gmiller15/css/vertprob.html . In mozilla 1.6/1.7 it looks the way I want it, with a thin separation between the two boxes. In IE6, the two boxes touch, which...
1
by: Charles Harrison Caudill | last post by:
with tables there is a clean and algorithmic way to organize things, but with css which is, once you get it working, much cleaner, I have to tweak and patch and hope and pray and curse before...
23
by: George | last post by:
Is there a way to customize the open file common dialog? I am trying to modify the button text so I can create a delete file common dialog. I need the same functionality of the open file common...
1
by: kmslick | last post by:
Hello all. Not sure which group this problem best relates to, so I'm posting to both with a follow up. I started learning C# and .NET last august for a project for my employer. The project...
3
by: Adam Sandler | last post by:
Hello, In VWD 2005, I have some code which send out confirmations before transactions are executed. The code for such confirmations sometimes involves MsgBox(). Sometimes, when the MsgBox code...
6
by: Steve Barnett | last post by:
I need to include a wizard in my application that will, as one of the steps, ask the user to select a file to open and (later) a file to save it as. The naff way to do this would be to have a...
13
by: Griff | last post by:
Hi Sorry no screen shots or links...I want to achieve the following visual effect: I want three boxes to appear on screen, all within a parent box (so 4 in total). Concerning the three...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.