?
Solved

vb.net - prevent msgbox flood

Posted on 2013-05-10
2
Medium Priority
?
550 Views
Last Modified: 2013-05-10
hello there,
I have a little app that checks file but for some reason if a file is being used it shows a little msgbox saying file in use.. I leave this app running and when I come back I usually find about 30 little windows of msgbox.
is there anything that can close the last msgbox before making a new one to prevent flood?
0
Comment
Question by:XK8ER
  • 2
2 Comments
 
LVL 22

Accepted Solution

by:
Paka earned 2000 total points
ID: 39157005
This should get you there...
http://vbcity.com/forums/t/105842.aspx
0
 
LVL 22

Assisted Solution

by:Paka
Paka earned 2000 total points
ID: 39157017
Another method would be to create a global variable that you set when the msgbox is opened and cleared when you close it.  If the variable is set, then either don't open a new window, or close the msgbox (using the code above) and create a new one.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question