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
212 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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…
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…

810 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