troubleshooting Question

Possible to do *anything* with messagebox?

Avatar of riceman0
riceman0 asked on
.NET ProgrammingC#Visual Basic.NET
13 Comments1 Solution428 ViewsLast Modified:

Hello, in my VB.NET program I continually monitor a serial port and display a status of a connected device, including "disconnected" if we haven't heard anything for a few seconds.

Well, whenever I throw up a modal msgbox I disconnect.  I guess this makes sense because the modal dialog box blocks my form.  However... is there any way to use modal messageboxes in an appllication and continue to handle certain events?  (such as my serial input)

I realize I can create my own forms and display them non-modally, but that is a pain and what I'm trying to avoid.  Besides, I *like* the modal behavior, it's appropriate -- I need the user to make a decision before he/she proceeds.  I just don't want to "disconnect" in the meantime.

Thanks for any thoughts.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 13 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros