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
219 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

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