Click here to Skip to main content
15,900,907 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generaltransform vb to vb.net Pin
lily822-Mar-05 14:08
lily822-Mar-05 14:08 
GeneralRe: transform vb to vb.net Pin
Christian Graus2-Mar-05 15:23
protectorChristian Graus2-Mar-05 15:23 
GeneralRe: transform vb to vb.net Pin
Dave Kreskowiak3-Mar-05 4:06
mveDave Kreskowiak3-Mar-05 4:06 
General.NET set-project installer creates software-entries twice Pin
Philipp3442-Mar-05 10:08
sussPhilipp3442-Mar-05 10:08 
GeneralThe format of the file 'system' is invalid. Pin
Anonymous2-Mar-05 7:51
Anonymous2-Mar-05 7:51 
GeneralRe: The format of the file 'system' is invalid. Pin
Dave Kreskowiak4-Mar-05 3:21
mveDave Kreskowiak4-Mar-05 3:21 
GeneralStreamReader constructor fails in FileWatcher event handler Pin
2-Mar-05 4:27
suss2-Mar-05 4:27 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
Mitch F.2-Mar-05 6:32
Mitch F.2-Mar-05 6:32 
Hello,
I have recently had a similar problem with a message box being required to give the process a bit of a "break".

You could use a thread to stop the process for a couple of seconds, such as:
Edit:
Dim thread As Threading.Thread = New Threading.Thread(AddressOf TestSub)
Private Sub processNewFile(Byval source As Object, ByVal e As FileSystemEventArgs)
Try

        thread.Start()
Catch ex As Exception
MsgBox("Dang...got an exception")
End Try
End Sub

And then create a new sub such as:
Sub TestSub()
'Your code goes here
End Sub


To pause your thread, all that you need to do is: thread.Sleep(1000)

Programmer2k4

My sig:

"The so-called 'Bugs' do not exist, they are merely features hidden by developers with message boxes that say 'An unhandled exception has occurred'." - Programmer2k4

"And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright


I now use my CodeProject Blog!

GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
skifanatic2-Mar-05 7:00
skifanatic2-Mar-05 7:00 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
Mitch F.2-Mar-05 7:53
Mitch F.2-Mar-05 7:53 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
skifanatic2-Mar-05 8:33
skifanatic2-Mar-05 8:33 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
Dave Kreskowiak2-Mar-05 9:13
mveDave Kreskowiak2-Mar-05 9:13 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
skifanatic2-Mar-05 9:59
skifanatic2-Mar-05 9:59 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
Dave Kreskowiak2-Mar-05 11:15
mveDave Kreskowiak2-Mar-05 11:15 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
skifanatic2-Mar-05 11:47
skifanatic2-Mar-05 11:47 
GeneralRe: StreamReader constructor fails in FileWatcher event handler Pin
Dallas Matthews2-Mar-05 9:28
Dallas Matthews2-Mar-05 9:28 
GeneralTrigger to send an email Pin
Un-Connected2-Mar-05 4:18
Un-Connected2-Mar-05 4:18 
GeneralRe: Trigger to send an email Pin
Mitch F.2-Mar-05 5:55
Mitch F.2-Mar-05 5:55 
GeneralSystem.NullReferenceException: Object reference not set to an instance of an object. Pin
ug39kxt@cs.bham.ac.uk2-Mar-05 3:58
ug39kxt@cs.bham.ac.uk2-Mar-05 3:58 
GeneralRe: System.NullReferenceException: Object reference not set to an instance of an object. Pin
Colin Angus Mackay2-Mar-05 4:25
Colin Angus Mackay2-Mar-05 4:25 
GeneralRe: System.NullReferenceException: Object reference not set to an instance of an object. Pin
ug39kxt@cs.bham.ac.uk2-Mar-05 4:50
ug39kxt@cs.bham.ac.uk2-Mar-05 4:50 
GeneralRe: System.NullReferenceException: Object reference not set to an instance of an object. Pin
ug39kxt@cs.bham.ac.uk2-Mar-05 4:56
ug39kxt@cs.bham.ac.uk2-Mar-05 4:56 
GeneralRe: System.NullReferenceException: Object reference not set to an instance of an object. Pin
Dave Kreskowiak2-Mar-05 7:06
mveDave Kreskowiak2-Mar-05 7:06 
Generalconverting to VB.NET Pin
Lisana2-Mar-05 3:20
Lisana2-Mar-05 3:20 
GeneralRe: converting to VB.NET Pin
Dave Kreskowiak2-Mar-05 3:36
mveDave Kreskowiak2-Mar-05 3:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.