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

C#

 
QuestionWind Chill Automation with C# application Pin
omisheikh15-Nov-12 6:03
omisheikh15-Nov-12 6:03 
AnswerRe: Wind Chill Automation with C# application Pin
jschell15-Nov-12 8:12
jschell15-Nov-12 8:12 
GeneralRe: Wind Chill Automation with C# application Pin
omisheikh16-Nov-12 3:25
omisheikh16-Nov-12 3:25 
GeneralRe: Wind Chill Automation with C# application Pin
jschell17-Nov-12 5:40
jschell17-Nov-12 5:40 
GeneralRe: Wind Chill Automation with C# application Pin
omisheikh18-Nov-12 21:00
omisheikh18-Nov-12 21:00 
QuestionAccess mainform while subform is updating Pin
MAW3014-Nov-12 19:01
MAW3014-Nov-12 19:01 
AnswerRe: Access mainform while subform is updating Pin
Mycroft Holmes14-Nov-12 19:53
professionalMycroft Holmes14-Nov-12 19:53 
AnswerRe: Access mainform while subform is updating Pin
DaveyM6915-Nov-12 0:02
professionalDaveyM6915-Nov-12 0:02 
To add to Mycroft's answer, all long running operations should be done on a separate thread to the UI. The problem with that is you cannot update the UI from a different thread.

The BackgroundWorker[^] component is a perfect fit for this situation as it's ProgressChanged and RunWorkerCompleted events will be raised on your UI thread so that problem is solved, and the DoWork event is raised on the worker thread so you don't have to get involved any more than that.

If you need to pass data around then the various methods/event arguments have an object you can use, alternatively I made a generic version which you can find here[^].
Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



QuestionGet integer variable from datalist textbox for entry into SQL Pin
Member 959997514-Nov-12 10:10
Member 959997514-Nov-12 10:10 
AnswerRe: Get integer variable from datalist textbox for entry into SQL Pin
rajeshkasani0514-Nov-12 18:34
rajeshkasani0514-Nov-12 18:34 
GeneralRe: Get integer variable from datalist textbox for entry into SQL Pin
Member 959997514-Nov-12 22:50
Member 959997514-Nov-12 22:50 
GeneralRe: Get integer variable from datalist textbox for entry into SQL Pin
rajeshkasani0514-Nov-12 22:55
rajeshkasani0514-Nov-12 22:55 
GeneralRe: Get integer variable from datalist textbox for entry into SQL Pin
Member 959997515-Nov-12 2:25
Member 959997515-Nov-12 2:25 
GeneralRe: Get integer variable from datalist textbox for entry into SQL Pin
Richard MacCutchan15-Nov-12 3:21
mveRichard MacCutchan15-Nov-12 3:21 
QuestionC# clear out global cache Pin
dcof14-Nov-12 7:52
dcof14-Nov-12 7:52 
AnswerRe: C# clear out global cache Pin
jschell14-Nov-12 8:00
jschell14-Nov-12 8:00 
AnswerRe: C# clear out global cache Pin
Pete O'Hanlon14-Nov-12 11:00
mvePete O'Hanlon14-Nov-12 11:00 
GeneralRe: C# clear out global cache Pin
cptKoala14-Nov-12 21:50
cptKoala14-Nov-12 21:50 
GeneralRe: C# clear out global cache Pin
Pete O'Hanlon14-Nov-12 22:07
mvePete O'Hanlon14-Nov-12 22:07 
GeneralRe: C# clear out global cache Pin
cptKoala14-Nov-12 22:12
cptKoala14-Nov-12 22:12 
GeneralRe: C# clear out global cache Pin
Paul Conrad15-Nov-12 7:52
professionalPaul Conrad15-Nov-12 7:52 
GeneralRe: C# clear out global cache Pin
Pete O'Hanlon15-Nov-12 8:39
mvePete O'Hanlon15-Nov-12 8:39 
Questionpredefined type 'xxx' is defined in multiple assemblies in the global alias Pin
sc steinhayse14-Nov-12 5:23
sc steinhayse14-Nov-12 5:23 
QuestionRe: predefined type 'xxx' is defined in multiple assemblies in the global alias Pin
n.podbielski14-Nov-12 6:20
n.podbielski14-Nov-12 6:20 
QuestionConversion of HTML file into TIFF file Pin
ukraju14-Nov-12 1:25
ukraju14-Nov-12 1:25 

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.