Re: msgbox button
From: Rick Rothstein (rickNOSPAMnews_at_NOSPAMcomcast.net)
Date: 06/21/04
- Next message: Tim Baur: "VB Object References"
- Previous message: ChrisM: "Re: msgbox button"
- In reply to: Daniel: "msgbox button"
- Next in thread: Ed: "Re: msgbox button"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 21 Jun 2004 12:15:28 -0400
> I have a msgbox that closes automatically after however many seconds I
have
> it set for. I am using it as a delay and at the same time allowing
the user
> to read a message. I need the delay, so I really don't want the user
to be
> able to click the OK button. Is there a way to either diable the
button, or
> not even have a button show up?
Why not just Print your message on a new Form and Show it modally when
you need it? Another option is to Print your message on a normally
Visible=False PictureBox and display (using Visible = True) that when
needed (remember to "Format/Order/Bring To Front" during design time or
use ZOrder during run time if it is not going to be the last component
you add to that Form); although that would leave controls on your form
"active", so you might want to Enable=False them during the display of
the PictureBox and Enable=True them when it is removed. In both cases,
you would use a Timer control to handle displaying the message for
however long you wanted.
Rick - MVP
- Next message: Tim Baur: "VB Object References"
- Previous message: ChrisM: "Re: msgbox button"
- In reply to: Daniel: "msgbox button"
- Next in thread: Ed: "Re: msgbox button"
- Messages sorted by: [ date ] [ thread ]