Re: msgbox button

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Rick Rothstein (rickNOSPAMnews_at_NOSPAMcomcast.net)
Date: 06/21/04


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



Relevant Pages

  • Timed and blinking messages
    ... display a self-closing message in the form when a certain condition is met, ... Warning messages in the status bar is not very alerting, ... Do While Timer < Delay ...
    (microsoft.public.excel.programming)
  • Re: [PATCH/RFC 2.6.20-rc4 1/1] fbdev,mm: hecuba/E-Ink fbdev driver
    ... associated with updating the display. ... unmaping and only then do the actual framebuffer update. ... userspace app like Xfbdev mmaps framebuffer ... add a small delay between first-touch and writeback to the display. ...
    (Linux-Kernel)
  • Re: [PATCH] Add sysfs support for fbdefio delay
    ... display and would like those done at a higher ... Who in userspace will know to reduce the delay? ... interface to player that takes input from a remote control and ...
    (Linux-Kernel)
  • Re: [PATCH/RFC 2.6.20-rc4 1/1] fbdev,mm: hecuba/E-Ink fbdev driver
    ... associated with updating the display. ... unmaping and only then do the actual framebuffer update. ... userspace app like Xfbdev mmaps framebuffer ... add a small delay between first-touch and writeback to the display. ...
    (Linux-Kernel)
  • Re: Problem with LCD & PIC16C54C
    ... the LCD still does not display. ... CALL DELAY ... CALL SDELAY ... MOVWF PORTB ...
    (sci.electronics.design)