Message box

  • Thread starter Thread starter Tony WONG
  • Start date Start date
T

Tony WONG

Hi

i wish to create a message box without affecting program flow.

when i click button1, box2 will come up without the need of user click out
box1.

any way to do that? Thanks a lot.

************************************
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
MsgBox("1st box")
MsgBox("2st box")
End Sub
End Class
 
Tony WONG said:
Hi

i wish to create a message box without affecting program flow.

when i click button1, box2 will come up without the need of user
click out box1.

any way to do that? Thanks a lot.

Yes, don't use a Msgbox. Show your own form. Even if it is possible with
some hacks to make the msgbox behave this way, showing your own Form is
straighter.
************************************
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
MsgBox("1st box")
MsgBox("2st box")
End Sub
End Class



Armin
 
Yes, don't use a Msgbox. Show your own form. Even if it is possible with
some hacks to make the msgbox behave this way, showing your own Form is
straighter.


Armin

Just to add to Armin,

You might want to put the content from both of the message boxes into
just one. In my experience, user's hate with a passion pop ups. If
possible, I would recommend you find a different way of displaying the
data besides using a pop up, but I realize that's not always possible
(modal forms etc.). If you do have to use pop ups, try to make them as
sparse as you can, your users will appreciated it.

Thanks,

Seth Rowe [MVP]
 
Hi

i wish to create a message box without affecting program flow.

when i click button1, box2 will come up without the need of user click out
box1.

any way to do that?  Thanks a lot.

************************************
Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
        MsgBox("1st box")
        MsgBox("2st box")
    End Sub
End Class

You can use small forms instead of message boxes. Put the content of
each messagebox into a windows form, then you can automate it as you
wish like hiding, closing, timing etc...
 
Msgbox is, by design, modal.

Just write you own form and call it without the modal option.

Mike
 
Back
Top