Click here to Skip to main content
15,881,248 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Printing w/out Crystal Report in VBNet Pin
Tom John9-Nov-04 5:55
Tom John9-Nov-04 5:55 
QuestionHow to get domain name of specific computer? Pin
dungle308-Nov-04 20:42
dungle308-Nov-04 20:42 
Questionhow to change datagrid properties? Pin
Lisana8-Nov-04 19:43
Lisana8-Nov-04 19:43 
QuestionHow to add dataset values to Crystal Report fields Pin
Jeevan anjna8-Nov-04 19:42
Jeevan anjna8-Nov-04 19:42 
GeneralThread Problem Pin
Sumit Domyan8-Nov-04 18:14
Sumit Domyan8-Nov-04 18:14 
GeneralRe: Thread Problem Pin
Fade (Amit BS)10-Nov-04 16:31
Fade (Amit BS)10-Nov-04 16:31 
GeneralRe: Thread Problem Pin
Sumit Domyan10-Nov-04 18:10
Sumit Domyan10-Nov-04 18:10 
GeneralRe: Thread Problem Pin
Fade (Amit BS)13-Nov-04 22:30
Fade (Amit BS)13-Nov-04 22:30 
invoker = New GeneralDelegate(AddressOf RefreshUserList)<br />
UsersTreeView.Invoke(invoker) 


that's a code from the PopulateUsers() sub... unless i'm missing something this kind of action will create threads until something bad will happen , am i missing something Confused | :confused: ?

i'll assume that either i am, or you have modified the code to invoke the RefreshUserList sub every 5.
now i think that it might be best not the destroy the previously created thread, but to monitor it's existence, possible by using a global or shared boolean member probably named 'blRefreshingUserList', each time you enter your timer event, before you create a new thread check and see whether the previous one has finished.

Although i don't see a scenario in which you won't finish refreshing in 5 secs. in 5 secs you can add A LOT or info, i think that something else is wrong,
if you wold like to send me the code and tell me what you want it to do, i'll check it and see why it is not working.

if not, you may also present more info so i can help you better, your choice (i won't steal your code anyway though)

Fade (Amit BS)
GeneralCapture an HTML document as an image Pin
ddd ssss8-Nov-04 17:52
ddd ssss8-Nov-04 17:52 
GeneralDisplay non duplicate data in combobox Pin
CelesterMok8-Nov-04 15:22
CelesterMok8-Nov-04 15:22 
GeneralQuestions Pin
Tech 4 a dummy8-Nov-04 14:57
Tech 4 a dummy8-Nov-04 14:57 
GeneralRe: Questions Pin
Tom John9-Nov-04 3:08
Tom John9-Nov-04 3:08 
GeneralRe: Questions Pin
Tech 4 a dummy9-Nov-04 13:44
Tech 4 a dummy9-Nov-04 13:44 
GeneralRe: Questions Pin
Tom John9-Nov-04 22:25
Tom John9-Nov-04 22:25 
GeneralToolbar button images not being diplayed Pin
Verolix8-Nov-04 13:16
Verolix8-Nov-04 13:16 
GeneralDisabling combobox items... Pin
Tim8w8-Nov-04 12:28
Tim8w8-Nov-04 12:28 
GeneralRe: Disabling combobox items... Pin
Dave Kreskowiak8-Nov-04 17:53
mveDave Kreskowiak8-Nov-04 17:53 
GeneralRe: Disabling combobox items... Pin
Tom John9-Nov-04 7:36
Tom John9-Nov-04 7:36 
GeneralVery simple question Pin
Boniolopez8-Nov-04 12:15
Boniolopez8-Nov-04 12:15 
GeneralRe: Very simple question Pin
beowulfagate8-Nov-04 13:17
beowulfagate8-Nov-04 13:17 
GeneralRe: Very simple question Pin
axiomillies14-Nov-04 19:16
axiomillies14-Nov-04 19:16 
GeneralConvert Sprite Sheets to Animations Pin
maykut20998-Nov-04 12:05
maykut20998-Nov-04 12:05 
GeneralForm.ShowDialog() problem Pin
genosis8-Nov-04 7:39
genosis8-Nov-04 7:39 
GeneralRe: Form.ShowDialog() problem Pin
CodeWell17-Nov-04 20:56
CodeWell17-Nov-04 20:56 
GeneralRe: Form.ShowDialog() problem Pin
genosis18-Nov-04 5:07
genosis18-Nov-04 5:07 

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.