Click here to Skip to main content
15,888,984 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Concatinating RTF Pin
Vasudevan Deepak Kumar15-Aug-07 0:16
Vasudevan Deepak Kumar15-Aug-07 0:16 
GeneralRe: Concatinating RTF Pin
Salman Sheikh15-Aug-07 0:43
Salman Sheikh15-Aug-07 0:43 
AnswerRe: Concatinating RTF Pin
MartyK200715-Aug-07 3:16
MartyK200715-Aug-07 3:16 
GeneralRe: Concatinating RTF Pin
Salman Sheikh15-Aug-07 10:44
Salman Sheikh15-Aug-07 10:44 
QuestionStopping a running process (vb2005) while updating a progress bar Pin
Vivek Narayanan14-Aug-07 23:59
Vivek Narayanan14-Aug-07 23:59 
AnswerRe: Stopping a running process (vb2005) while updating a progress bar Pin
Vasudevan Deepak Kumar15-Aug-07 0:18
Vasudevan Deepak Kumar15-Aug-07 0:18 
GeneralRe: Stopping a running process (vb2005) while updating a progress bar Pin
Vivek Narayanan15-Aug-07 1:02
Vivek Narayanan15-Aug-07 1:02 
AnswerRe: Stopping a running process (vb2005) while updating a progress bar [modified] Pin
GuyThiebaut15-Aug-07 1:44
professionalGuyThiebaut15-Aug-07 1:44 
I have come across the same situation you describe and using threads I coded it something like this:

<code>
Public scanInformThread As Threading.Thread


scanInformThread = New Threading.Thread(AddressOf Me.scanInformThreadProc)
scanInformThread.Priority = Threading.ThreadPriority.Lowest
scanInformThread.Start()

While scanInformThread.IsAlive = True

	check if cancel button is pressed
        if it is pressed then scanInformThreadProc.Abort()
	Yadayada Blahblah
	make a cuppa coffee


End While

Sub scanInformThreadProc()

	Yadayada Blahblah
	do something useful like surf the web

end sub
</code>


Please excuse the pseudocode.
Also note that this is not thread safe so you will need to put:

Control.CheckForIllegalCrossThreadCalls = False

at the beginning of your code to stop the compiler from whining at you.



I hope this helps.

GuySmile | :)


-- modified at 8:02 Wednesday 15th August, 2007


-- modified at 8:06 Wednesday 15th August, 2007

You always pass failure on the way to success.

GeneralRe: Stopping a running process (vb2005) while updating a progress bar Pin
MartyK200715-Aug-07 3:19
MartyK200715-Aug-07 3:19 
GeneralRe: Stopping a running process (vb2005) while updating a progress bar Pin
GuyThiebaut15-Aug-07 4:00
professionalGuyThiebaut15-Aug-07 4:00 
GeneralRe: Stopping a running process (vb2005) while updating a progress bar Pin
Vivek Narayanan15-Aug-07 5:05
Vivek Narayanan15-Aug-07 5:05 
QuestionLoop For Datatable Pin
ejaz_pk14-Aug-07 22:24
ejaz_pk14-Aug-07 22:24 
AnswerRe: Loop For Datatable Pin
_mubashir14-Aug-07 22:31
_mubashir14-Aug-07 22:31 
QuestionRe: Loop For Datatable [modified] Pin
ejaz_pk14-Aug-07 22:38
ejaz_pk14-Aug-07 22:38 
AnswerRe: Loop For Datatable Pin
Christian Graus15-Aug-07 0:25
protectorChristian Graus15-Aug-07 0:25 
GeneralRe: Loop For Datatable Pin
ejaz_pk15-Aug-07 2:14
ejaz_pk15-Aug-07 2:14 
Questionhow to call a class Pin
eyes200714-Aug-07 21:19
eyes200714-Aug-07 21:19 
AnswerRe: how to call a class Pin
Taylor Kobani14-Aug-07 23:14
Taylor Kobani14-Aug-07 23:14 
GeneralRe: how to call a class Pin
eyes200714-Aug-07 23:29
eyes200714-Aug-07 23:29 
AnswerRe: how to call a class Pin
Christian Graus15-Aug-07 0:29
protectorChristian Graus15-Aug-07 0:29 
QuestionWhy my .exe program (with winsock) can't run in other computer? Pin
cedonulfi14-Aug-07 19:51
cedonulfi14-Aug-07 19:51 
AnswerRe: Why my .exe program (with winsock) can't run in other computer? Pin
Christian Graus14-Aug-07 20:05
protectorChristian Graus14-Aug-07 20:05 
Questioncombobox in vb.net Pin
enmahdi14-Aug-07 19:41
enmahdi14-Aug-07 19:41 
AnswerRe: combobox in vb.net Pin
Christian Graus14-Aug-07 19:42
protectorChristian Graus14-Aug-07 19:42 
GeneralRe: combobox in vb.net Pin
Salman Sheikh15-Aug-07 0:20
Salman Sheikh15-Aug-07 0:20 

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.