Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
Questionadding new tables to sql at runtime Pin
teknolog1234-Apr-10 7:08
teknolog1234-Apr-10 7:08 
AnswerRe: adding new tables to sql at runtime Pin
Abhinav S4-Apr-10 7:32
Abhinav S4-Apr-10 7:32 
GeneralRe: adding new tables to sql at runtime Pin
teknolog1234-Apr-10 7:52
teknolog1234-Apr-10 7:52 
QuestionCross-thread operation not valid: Control accessed from a thread other than the thread it was created on. Pin
igalep1324-Apr-10 6:22
igalep1324-Apr-10 6:22 
AnswerRe: Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on. Pin
Nicholas Butler4-Apr-10 6:27
sitebuilderNicholas Butler4-Apr-10 6:27 
AnswerRe: Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on. Pin
Abhinav S4-Apr-10 6:36
Abhinav S4-Apr-10 6:36 
Answerthanks, and one more Question Pin
igalep1324-Apr-10 8:14
igalep1324-Apr-10 8:14 
GeneralRe: thanks, and one more Question Pin
OriginalGriff4-Apr-10 8:33
mveOriginalGriff4-Apr-10 8:33 
BackgroundWorker does not have Thread.Suspend and Thread.Resume, so I suspect you will have to do it manually:
1) Set up a class level bool accessable to both the main and BackgroundWorker threads.
2) Set the bool true in the main thread when you want to pause the worker, and false when you want to resume it.
3) In the worker thread, monitor the bool on occasion, and while it it true, use the Sleep method for a suitable interval - half a second or so, depending on how fast you want it to start continuing.

Or better, replace the bool with a ManualResetEvent[^]
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace

C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy

GeneralRe: thanks, and one more Question Pin
igalep1324-Apr-10 9:45
igalep1324-Apr-10 9:45 
QuestionBackslashes and forward slashes Pin
Darrall4-Apr-10 6:14
Darrall4-Apr-10 6:14 
AnswerRe: Backslashes and forward slashes Pin
OriginalGriff4-Apr-10 6:23
mveOriginalGriff4-Apr-10 6:23 
GeneralRe: Backslashes and forward slashes Pin
Darrall4-Apr-10 7:46
Darrall4-Apr-10 7:46 
GeneralRe: Backslashes and forward slashes Pin
OriginalGriff4-Apr-10 8:13
mveOriginalGriff4-Apr-10 8:13 
GeneralRe: Backslashes and forward slashes Pin
Darrall4-Apr-10 8:55
Darrall4-Apr-10 8:55 
GeneralRe: Backslashes and forward slashes Pin
FyreWyrm4-Apr-10 10:37
FyreWyrm4-Apr-10 10:37 
GeneralRe: Backslashes and forward slashes Pin
Darrall4-Apr-10 11:02
Darrall4-Apr-10 11:02 
GeneralRe: Backslashes and forward slashes Pin
harold aptroot4-Apr-10 11:33
harold aptroot4-Apr-10 11:33 
GeneralRe: Backslashes and forward slashes Pin
OriginalGriff4-Apr-10 21:38
mveOriginalGriff4-Apr-10 21:38 
GeneralRe: Backslashes and forward slashes Pin
Ravi Bhavnani4-Apr-10 8:15
professionalRavi Bhavnani4-Apr-10 8:15 
AnswerRe: Backslashes and forward slashes Pin
Dave Kreskowiak4-Apr-10 7:49
mveDave Kreskowiak4-Apr-10 7:49 
GeneralRe: Backslashes and forward slashes Pin
Darrall4-Apr-10 8:05
Darrall4-Apr-10 8:05 
GeneralRe: Backslashes and forward slashes Pin
PIEBALDconsult4-Apr-10 13:40
mvePIEBALDconsult4-Apr-10 13:40 
QuestionAdding items to ListView groups Pin
teknolog1234-Apr-10 4:09
teknolog1234-Apr-10 4:09 
AnswerRe: Adding items to ListView groups Pin
Luc Pattyn4-Apr-10 4:12
sitebuilderLuc Pattyn4-Apr-10 4:12 
QuestionSerializationException was unhandled Message="Unable to find assembly... " problem Pin
barak drechsler4-Apr-10 3:37
barak drechsler4-Apr-10 3:37 

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.