Solved

vb.net - prevent msgbox flood

Posted on 2013-05-10
2
524 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 500 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 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now