Click here to Skip to main content
15,888,401 members
Home / Discussions / C#
   

C#

 
GeneralRe: How would you store this data (interview question) Pin
SledgeHammer013-Feb-12 13:53
SledgeHammer013-Feb-12 13:53 
Questionevents Pin
michaelgr12-Feb-12 8:08
michaelgr12-Feb-12 8:08 
AnswerRe: events Pin
SledgeHammer012-Feb-12 8:19
SledgeHammer012-Feb-12 8:19 
Generallots of license plates Pin
Luc Pattyn2-Feb-12 8:27
sitebuilderLuc Pattyn2-Feb-12 8:27 
GeneralRe: lots of license plates Pin
SledgeHammer012-Feb-12 8:30
SledgeHammer012-Feb-12 8:30 
AnswerRe: lots of license plates Pin
Luc Pattyn2-Feb-12 8:31
sitebuilderLuc Pattyn2-Feb-12 8:31 
GeneralRe: lots of license plates Pin
BillWoodruff3-Feb-12 5:02
professionalBillWoodruff3-Feb-12 5:02 
AnswerRe: events Pin
Luc Pattyn2-Feb-12 8:22
sitebuilderLuc Pattyn2-Feb-12 8:22 
1. your threads do whatever you make them do, and will continue to do so.
And events get handled by either the main aka GUI thread, or one of the threadpool threads. See here[^].

2. If you have long winding code that executes on the main thread (e.g. in a button click handler), then other GUI events (and Windows.Forms.Timer tick events, and more) will be stalled. That basically is why long winding operations should NOT be executed by the main thread.

3. If other threads need to access WinForm GUI components (Controls), you need to use Invoke. See here[^].

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

Fed up by FireFox memory leaks I switched to Opera and now CP doesn't perform its paste magic, so links will not be offered. Sorry.

AnswerRe: events Pin
Bernhard Hiller2-Feb-12 21:29
Bernhard Hiller2-Feb-12 21:29 
GeneralRe: events Pin
michaelgr13-Feb-12 23:18
michaelgr13-Feb-12 23:18 
GeneralRe: events Pin
BobJanova4-Feb-12 1:39
BobJanova4-Feb-12 1:39 
GeneralRe: events Pin
michaelgr14-Feb-12 2:32
michaelgr14-Feb-12 2:32 
QuestionBlind Watermarking With DWT Pin
fidelis jamboreoog2-Feb-12 5:58
fidelis jamboreoog2-Feb-12 5:58 
AnswerRe: Blind Watermarking With DWT Pin
Mycroft Holmes2-Feb-12 14:02
professionalMycroft Holmes2-Feb-12 14:02 
QuestionA method to refresh MappedNetworkDrives in code? Pin
mlyons2-Feb-12 5:52
mlyons2-Feb-12 5:52 
AnswerRe: A method to refresh MappedNetworkDrives in code? Pin
SledgeHammer012-Feb-12 7:15
SledgeHammer012-Feb-12 7:15 
AnswerRe: A method to refresh MappedNetworkDrives in code? Pin
Mycroft Holmes2-Feb-12 14:05
professionalMycroft Holmes2-Feb-12 14:05 
GeneralRe: A method to refresh MappedNetworkDrives in code? Pin
mlyons3-Feb-12 2:59
mlyons3-Feb-12 2:59 
QuestionPInvoke stack overflow Pin
openLG2-Feb-12 2:47
openLG2-Feb-12 2:47 
AnswerRe: PInvoke stack overflow Pin
OriginalGriff2-Feb-12 2:59
mveOriginalGriff2-Feb-12 2:59 
GeneralRe: PInvoke stack overflow Pin
openLG2-Feb-12 3:09
openLG2-Feb-12 3:09 
AnswerRe: PInvoke stack overflow Pin
Luc Pattyn2-Feb-12 3:10
sitebuilderLuc Pattyn2-Feb-12 3:10 
GeneralRe: PInvoke stack overflow Pin
openLG2-Feb-12 3:16
openLG2-Feb-12 3:16 
QuestionNeed help for duplicate rows automatically inserted from front end. Pin
Member 85919852-Feb-12 2:17
Member 85919852-Feb-12 2:17 
AnswerRe: Need help for duplicate rows automatically inserted from front end. Pin
PIEBALDconsult2-Feb-12 2:28
mvePIEBALDconsult2-Feb-12 2:28 

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.