Solved

Message Box positioning

Posted on 2000-05-16
6
305 Views
Last Modified: 2010-05-02
Using VB6 with SP3.  Is there a way to specify the position of a message box?  This one pastes right on top of something I wish to see too.  I don't want to move that.  I want to move the message box. -- Norm
0
Comment
Question by:npnp
6 Comments
 
LVL 5

Expert Comment

by:TheMek
ID: 2814056
As far as I know the MsgBox always centers in the screen. An alternative is to write your own form that behaves like a messagebox, but which you handle yourself completely. A lot of work, so it's probably easier to just let the msgbox pop up at the center and then move it away if you want to see what's underneath it.
Not much help, but like I said, I don't think it can be positioned.

Greetings,
   Erwin
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 2814109
It is certainly possible to move the messagebox, but you would need async processing, some API, in one word a lot of stuff.

I agree with TheMek that it would probably be easier to develop your own messagebox...

0
 
LVL 2

Expert Comment

by:Simonac
ID: 2814193
The funny thing is that U can specify the position of an InputBox; Once again the consistency and proffesionalism of microsoft products is demonstrated...
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 9

Accepted Solution

by:
Dalin earned 50 total points
ID: 2814310
Create your own msgbox!
Just add a form, call it frmMsg.
Use labels to show your message, add command button...
then use
frmMsg.show vbmodal

The nice thing is that you can specify font, color, size, position, even add some graphics...

0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2814345
http://homepage.eircom.net/~carafa/VB/Pino.htm

Check out the "A custom message box" link
0
 

Author Comment

by:npnp
ID: 2814367
Thats what I thought!  Maybe I was wrong, I hoped.  But no.

Thanks to everyone.  Wish I could distribute points. -- Norm
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question