Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2007

Tip: Looking for answers? Try searching our database.

auto close a messagebox on event firing, C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Renster - 23 Feb 2007 15:56 GMT
Folks,

Im all too familiar with Messagebox.Show - but now I have a situation
where I need a similar sort of messagebox to appear, but to
automatically disappear when an event fires - ie, messagebox.show
("Please plug the device in the USB port"), then when the user plugs a
device in, and the device.connected event fires, the system
automatically kills the messagebox.

Any hints appreciated!

Cheers
Kevin Spencer - 23 Feb 2007 17:30 GMT
You would have to use a Dialog Box to do this. The MessageBox class
encapsulates a call to the WinAPI MessageBox function, which does not return
a handle to its' window, only the return value of the button pressed.

Signature

HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

I had the same problem once. Fixed it using the same solution.

> Folks,
>
[quoted text clipped - 8 lines]
>
> Cheers

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.