Solved

Message Box positioning

Posted on 2000-05-16
6
316 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 143

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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
using web browser with BING 40 136
Spell Check in VB6 13 137
adding "ungroup sheets" to existing vbs code 5 52
Fastest way to find and count same items VB6 16 43
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

763 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