Click here to Skip to main content
16,010,918 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhw to delete row from data grid in run time??? Pin
abbss.gaurav4-Apr-07 7:31
abbss.gaurav4-Apr-07 7:31 
AnswerRe: hw to delete row from data grid in run time??? Pin
Johan Hakkesteegt9-Apr-07 20:13
Johan Hakkesteegt9-Apr-07 20:13 
QuestionHELP! Custom Eye-dropper Pin
gatorlaid4-Apr-07 7:21
gatorlaid4-Apr-07 7:21 
GeneralQuick Watch Error "Cannot Obtain Value" Pin
jPucci4-Apr-07 7:11
jPucci4-Apr-07 7:11 
QuestionDialog boxes Pin
Diego F.4-Apr-07 5:26
Diego F.4-Apr-07 5:26 
AnswerRe: Dialog boxes Pin
Kschuler4-Apr-07 6:11
Kschuler4-Apr-07 6:11 
GeneralRe: Dialog boxes Pin
Diego F.10-Apr-07 1:33
Diego F.10-Apr-07 1:33 
GeneralRe: Dialog boxes Pin
Kschuler10-Apr-07 2:46
Kschuler10-Apr-07 2:46 
You will want to put the code that takes a long time in the DoWork event. However, it's a little tricky because when you run something on a different thread you can't just use class level variables or you will get a cross threading error. Parms have to be passed in through the background worker's argument property. It's too much to explain on the forums but I'm sure there are some articles on using the background worker...

Here is one: http://www.codeproject.com/csharp/backgroundworker.asp[^]

Here is another: http://www.codeproject.com/cs/threads/ImprovedThreading.asp[^]


Hope this helps.

--------------------------------------------------
Play Nation States and join The Code Project region with the password: byalmightybob

GeneralRe: Dialog boxes Pin
Diego F.10-Apr-07 4:11
Diego F.10-Apr-07 4:11 
GeneralRe: Dialog boxes Pin
Kschuler10-Apr-07 4:15
Kschuler10-Apr-07 4:15 
GeneralRe: Dialog boxes Pin
Diego F.10-Apr-07 4:59
Diego F.10-Apr-07 4:59 
QuestionCombobox again Pin
Jodd4-Apr-07 5:07
Jodd4-Apr-07 5:07 
AnswerRe: Combobox again Pin
Kschuler4-Apr-07 6:14
Kschuler4-Apr-07 6:14 
GeneralRe: Combobox again Pin
Jodd4-Apr-07 6:28
Jodd4-Apr-07 6:28 
GeneralRe: Combobox again Pin
Kschuler4-Apr-07 7:40
Kschuler4-Apr-07 7:40 
GeneralRe: Combobox again Pin
Jodd4-Apr-07 13:48
Jodd4-Apr-07 13:48 
GeneralRe: Combobox again Pin
Kschuler5-Apr-07 2:37
Kschuler5-Apr-07 2:37 
QuestionSetting the control height Pin
ChrisDavidson4-Apr-07 4:43
ChrisDavidson4-Apr-07 4:43 
QuestionWindows Installer 3.1 Pin
Karma312514-Apr-07 3:31
Karma312514-Apr-07 3:31 
AnswerRe: Windows Installer 3.1 Pin
MatrixCoder4-Apr-07 4:35
MatrixCoder4-Apr-07 4:35 
QuestionQuestion regarding.....msstdfmt.dll Pin
kirrik4-Apr-07 3:19
kirrik4-Apr-07 3:19 
AnswerRe: Question regarding.....msstdfmt.dll Pin
M-Hall4-Apr-07 14:06
M-Hall4-Apr-07 14:06 
GeneralRe: Question regarding.....msstdfmt.dll Pin
kirrik4-Apr-07 19:38
kirrik4-Apr-07 19:38 
GeneralRe: Question regarding.....msstdfmt.dll Pin
M-Hall5-Apr-07 13:11
M-Hall5-Apr-07 13:11 
GeneralRe: Question regarding.....msstdfmt.dll Pin
kirrik8-Apr-07 21:09
kirrik8-Apr-07 21:09 

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.