HI,
Can we choose where a messagebox appears without making our own class?
Printable View
HI,
Can we choose where a messagebox appears without making our own class?
Maybe API ?? but can't be sure which one is .(SetWindow or something)
create your own custom message box (a form, a button, voilla!)
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!!
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!
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.