Solved

Message Box positioning

Posted on 2000-05-16
6
295 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now