|
-
Mar 22nd, 2004, 07:07 AM
#1
Thread Starter
PowerPoster
messageBox Location
HI,
Can we choose where a messagebox appears without making our own class?
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
-
Mar 22nd, 2004, 07:39 AM
#2
Sleep mode
Maybe API ?? but can't be sure which one is .(SetWindow or something)
-
Mar 22nd, 2004, 07:49 AM
#3
Fanatic Member
create your own custom message box (a form, a button, voilla!)
-
Mar 22nd, 2004, 09:57 AM
#4
Thread Starter
PowerPoster
Hi Nick,
"create your own custom message box (a form, a button, voilla!)"
I have tried that but I could not inherit from the Windows message box -- you can't use the MessageBox Sub New in your derived form, unless you know otherwise.
With the frmMessageBox I have designed I have to resize it every time it is called, otherwise it shrinks!!
Last edited by taxes; Mar 22nd, 2004 at 10:06 AM.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
-
Mar 22nd, 2004, 10:14 AM
#5
Fanatic Member
even if you create a new instance of it every time you want to show it?
If you create a new instance of one every time you want to show one you can pass the top, left, width, height, and text value in the new constructor?
I am only saying this in principle! I've not tried it (yet) in practise!
-
Mar 22nd, 2004, 11:09 AM
#6
Thread Starter
PowerPoster
Hi Nick,
"even if you create a new instance of it every time you want to show it?"
I am using my custom message box to show the results of a loop at the end of each loop, so I only create one instance during that process. I have overcome it by resizing it on every occasion it is used, but I cannot see why I have to.
I wanted to inherit from the windows MessageBox in order to save construction time, adding only an accessible location property.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|