Solved

Msgbox function: is it possible to change the size and position of a standard messagebox when it is displayed on screen ?

Posted on 1998-12-30
3
210 Views
Last Modified: 2010-05-03
I have created a simple basic messagebox which looks like this:

Msgbox "Do you want to login ?",vbYesNo, "Registration form"

Like this, the messagebox is always dislayed in the middle of the screen and also with a size that VB determines.

I want to:

1) change the startup position of this messagebox as it is overlapping another form which I don't want

2) I also want to determine myself the size of the messagebox, like you do with an ordinary form

Thanking you in advance fot your help...
0
Comment
Question by:pedrovdb
3 Comments
 
LVL 4

Accepted Solution

by:
idcanada earned 20 total points
ID: 1453381

1. The start up position can NOT be changed.
Unless you were to make your own. Not that compilcated, A form, 3 buttons and a label
or two. Play with the Visible and caption properties of the controls.

2. However, the size you can play with...
Msgbox "                                                                   " & vbcrlf & "Do you want to login ?",vbYesNo, "Registration form"



0
 
LVL 15

Expert Comment

by:ameba
ID: 1453382
Ones msgbox is displayed, you can send msgs to it
http://www.experts-exchange.com/Q.10109181
0
 
LVL 3

Expert Comment

by:jjmartin
ID: 1453383
If you want to get creative with message boxes, the best bet is to make your own, then you have complete control over the appearance, and postion.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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 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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

705 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

20 Experts available now in Live!

Get 1:1 Help Now