Click here to Skip to main content
       

C#

 
QuestionWind Chill Automation with C# application Pinmemberomisheikh15-Nov-12 6:03 
AnswerRe: Wind Chill Automation with C# application Pinmemberjschell15-Nov-12 8:12 
GeneralRe: Wind Chill Automation with C# application Pinmemberomisheikh16-Nov-12 3:25 
GeneralRe: Wind Chill Automation with C# application Pinmemberjschell17-Nov-12 5:40 
GeneralRe: Wind Chill Automation with C# application Pinmemberomisheikh18-Nov-12 21:00 
QuestionAccess mainform while subform is updating PinmemberMAW3014-Nov-12 19:01 
AnswerRe: Access mainform while subform is updating PinmemberMycroft Holmes14-Nov-12 19:53 
AnswerRe: Access mainform while subform is updating PinmentorDaveyM6915-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 [modified] PinmemberMember 959997514-Nov-12 10:10 
AnswerRe: Get integer variable from datalist textbox for entry into SQL Pinmemberrajeshkasani0514-Nov-12 18:34 
GeneralRe: Get integer variable from datalist textbox for entry into SQL PinmemberMember 959997514-Nov-12 22:50 
GeneralRe: Get integer variable from datalist textbox for entry into SQL Pinmemberrajeshkasani0514-Nov-12 22:55 
GeneralRe: Get integer variable from datalist textbox for entry into SQL PinmemberMember 959997515-Nov-12 2:25 
GeneralRe: Get integer variable from datalist textbox for entry into SQL PinmvpRichard MacCutchan15-Nov-12 3:21 
QuestionC# clear out global cache Pinmemberdcof14-Nov-12 7:52 
AnswerRe: C# clear out global cache Pinmemberjschell14-Nov-12 8:00 
AnswerRe: C# clear out global cache [modified] PinprotectorPete O'Hanlon14-Nov-12 11:00 
GeneralRe: C# clear out global cache PinmembercptKoala14-Nov-12 21:50 
GeneralRe: C# clear out global cache PinprotectorPete O'Hanlon14-Nov-12 22:07 
GeneralRe: C# clear out global cache PinmembercptKoala14-Nov-12 22:12 
GeneralRe: C# clear out global cache PinmemberPaul Conrad15-Nov-12 7:52 
GeneralRe: C# clear out global cache PinprotectorPete O'Hanlon15-Nov-12 8:39 
Questionpredefined type 'xxx' is defined in multiple assemblies in the global alias Pinmembersc steinhayse14-Nov-12 5:23 
QuestionRe: predefined type 'xxx' is defined in multiple assemblies in the global alias Pinmembern.podbielski14-Nov-12 6:20 
QuestionConversion of HTML file into TIFF file [modified] Pinmemberukraju14-Nov-12 1:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.141022.2 | Last Updated 26 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid