Click here to Skip to main content
16,005,222 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: load vb.net application when OS starts Pin
len_ems24-Aug-04 21:25
len_ems24-Aug-04 21:25 
GeneralRe: load vb.net application when OS starts Pin
antiem26-Aug-04 6:46
antiem26-Aug-04 6:46 
GeneralRe: code problem Pin
Colin Angus Mackay23-Aug-04 22:17
Colin Angus Mackay23-Aug-04 22:17 
GeneralRe: code problem Pin
Colin Angus Mackay26-Aug-04 12:08
Colin Angus Mackay26-Aug-04 12:08 
Generalunhandled exception saving file Pin
Glen Conaway23-Aug-04 21:54
Glen Conaway23-Aug-04 21:54 
GeneralRe: unhandled exception saving file Pin
Colin Angus Mackay23-Aug-04 22:21
Colin Angus Mackay23-Aug-04 22:21 
GeneralRe: unhandled exception saving file Pin
Glen Conaway23-Aug-04 22:31
Glen Conaway23-Aug-04 22:31 
GeneralRe: unhandled exception saving file Pin
Purple Monk25-Aug-04 6:01
Purple Monk25-Aug-04 6:01 
The simplest way i can think of is to have a boolean flag at each end like this inside of a do loop so it keeps checking.

This way will mean it will only process if it is not processing and it will keep checking until blnProcessing becomes false again if you get what i mean

Private Sub SavePosition()

Dim blnProcessing as boolean

Do while 1 = 1

if blnprocessing = false then

blnProcessing = true

' Creating stream Writer type object
Dim SW As StreamWriter
' Create FS As FileStream
Dim Fs As FileStream
' Creating steam.txt using filestream object and reference
' to filestream object
Fs = New FileStream("C:\stream2.txt", FileMode.Create)
' Initializing steam reader object using filesteam object
SW = New StreamWriter(Fs)
' Saving data to file
SW.WriteLine(ListBox1.SelectedIndex)
' Closeing stream writer
SW.Close()
' Closeing file stream
Fs.Close()

blnProcessing = false

exit do

End if

wend

End Sub

"I am what i am, and i do what i do, but sometimes i do, what you want me to do."


GeneralRe: recordset problem Pin
Dave Kreskowiak24-Aug-04 0:35
mveDave Kreskowiak24-Aug-04 0:35 
GeneralRe: recordset problem Pin
S Sansanwal24-Aug-04 10:53
S Sansanwal24-Aug-04 10:53 
GeneralPlease Help Me soon Pin
mohan_balal23-Aug-04 20:56
mohan_balal23-Aug-04 20:56 
GeneralRe: Please Help Me soon Pin
Dave Kreskowiak24-Aug-04 5:26
mveDave Kreskowiak24-Aug-04 5:26 
GeneralCreate report base on the value from the first database Pin
Mekong River23-Aug-04 18:22
Mekong River23-Aug-04 18:22 
GeneralRe: Create report base on the value from the first database Pin
Dave Kreskowiak24-Aug-04 0:33
mveDave Kreskowiak24-Aug-04 0:33 
GeneralRe: Create report base on the value from the first database Pin
Mekong River24-Aug-04 5:02
Mekong River24-Aug-04 5:02 
GeneralRe: Create report base on the value from the first database Pin
Dave Kreskowiak24-Aug-04 16:48
mveDave Kreskowiak24-Aug-04 16:48 
GeneralWrite to database file Pin
sumiko23-Aug-04 18:01
sumiko23-Aug-04 18:01 
Generalneed help! :( Pin
23-Aug-04 17:13
suss23-Aug-04 17:13 
GeneralHelp with VBA MS Access error. Pin
stan2823-Aug-04 17:01
stan2823-Aug-04 17:01 
GeneralRe: Help with VBA MS Access error. Pin
Dave Kreskowiak24-Aug-04 0:28
mveDave Kreskowiak24-Aug-04 0:28 
GeneralRe: Help with VBA MS Access error. Pin
stan2824-Aug-04 2:53
stan2824-Aug-04 2:53 
GeneralRe: Help with VBA MS Access error. Pin
Dave Kreskowiak24-Aug-04 5:18
mveDave Kreskowiak24-Aug-04 5:18 
GeneralRe: Help with VBA MS Access error. Pin
stan2824-Aug-04 5:48
stan2824-Aug-04 5:48 
GeneralRe: Help with VBA MS Access error. Pin
Dave Kreskowiak24-Aug-04 7:09
mveDave Kreskowiak24-Aug-04 7:09 
GeneralAdding Save & Load ability to ap. Pin
Anonymous23-Aug-04 15:58
Anonymous23-Aug-04 15:58 

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.