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

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

863 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

26 Experts available now in Live!

Get 1:1 Help Now