?
Solved

vb.net - prevent msgbox flood

Posted on 2013-05-10
2
Medium Priority
?
547 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Command Line Tips and Tricks

The command line is a powerful tool at the disposal of every Linux user. Although Linux distros come with beautiful user interfaces, it's worthwhile to learn the command line because it allows you to do a number of things that you otherwise cannot do from the GUI.  

Question has a verified solution.

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

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 …
Starting up a Project
Suggested Courses

765 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