Click here to Skip to main content
15,884,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need help with regards to datagridview Pin
Mycroft Holmes30-Nov-15 22:20
professionalMycroft Holmes30-Nov-15 22:20 
GeneralRe: Need help with regards to datagridview Pin
OriginalGriff1-Dec-15 0:05
mveOriginalGriff1-Dec-15 0:05 
GeneralRe: Need help with regards to datagridview Pin
Tbweri1-Dec-15 9:42
Tbweri1-Dec-15 9:42 
AnswerRe: Need help with regards to datagridview Pin
Simon_Whale1-Dec-15 1:17
Simon_Whale1-Dec-15 1:17 
GeneralRe: Need help with regards to datagridview Pin
Eddy Vluggen1-Dec-15 1:19
professionalEddy Vluggen1-Dec-15 1:19 
GeneralRe: Need help with regards to datagridview Pin
Tbweri1-Dec-15 9:54
Tbweri1-Dec-15 9:54 
Questionhow to use thread to control chart? Pin
smallkubi30-Nov-15 15:04
smallkubi30-Nov-15 15:04 
AnswerRe: how to use thread to control chart? Pin
Dave Kreskowiak30-Nov-15 16:05
mveDave Kreskowiak30-Nov-15 16:05 
Ohm the thread works. The problem is that the code you're Invoking is being executed on the UI thread, not the thread you launched, because, well, THAT'S WHAT INVOKE DOES! And then you put the UI thread to sleep for a second. Once the Sleep is done and the delegate is done running, THEN you UI thread can get back to processing the message pump, like responding to WM_PAINT messages to repaint your window if needed.

You cannot touch a UI control properties or methods from anything other than the UI thread. You can create a new Series object and populate it with data in the background thread and THEN make the assignment to the chart object in delegated code. You're doing everything in the delegate, on the UI thread.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

QuestionUsing static var on a class Pin
Member 1217642830-Nov-15 4:59
Member 1217642830-Nov-15 4:59 
AnswerRe: Using static var on a class Pin
Dave Kreskowiak30-Nov-15 5:08
mveDave Kreskowiak30-Nov-15 5:08 
GeneralRe: Using static var on a class Pin
Member 1217642830-Nov-15 5:42
Member 1217642830-Nov-15 5:42 
AnswerRe: Using static var on a class Pin
Richard Deeming30-Nov-15 5:34
mveRichard Deeming30-Nov-15 5:34 
GeneralRe: Using static var on a class Pin
Member 1217642830-Nov-15 5:41
Member 1217642830-Nov-15 5:41 
AnswerRe: Using static var on a class Pin
OriginalGriff30-Nov-15 6:32
mveOriginalGriff30-Nov-15 6:32 
GeneralRe: Using static var on a class Pin
Richard Deeming30-Nov-15 6:40
mveRichard Deeming30-Nov-15 6:40 
AnswerThanks everyone,someone knows the answer for B. ? Pin
Member 1217642830-Nov-15 6:52
Member 1217642830-Nov-15 6:52 
GeneralRe: Thanks everyone,someone knows the answer for B. ? Pin
Eddy Vluggen30-Nov-15 7:11
professionalEddy Vluggen30-Nov-15 7:11 
GeneralRe: Thanks everyone,someone knows the answer for B. ? Pin
BillWoodruff30-Nov-15 9:09
professionalBillWoodruff30-Nov-15 9:09 
AnswerRe: Using static var on a class Pin
BillWoodruff30-Nov-15 9:17
professionalBillWoodruff30-Nov-15 9:17 
QuestionMy problem Pin
Member 1217509329-Nov-15 19:17
Member 1217509329-Nov-15 19:17 
AnswerRe: My problem Pin
BillWoodruff29-Nov-15 20:52
professionalBillWoodruff29-Nov-15 20:52 
Questionhow to use delegate to call function and introduce function as content? Pin
smallkubi29-Nov-15 18:31
smallkubi29-Nov-15 18:31 
AnswerRe: how to use delegate to call function and introduce function as content? Pin
BillWoodruff29-Nov-15 20:04
professionalBillWoodruff29-Nov-15 20:04 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
smallkubi29-Nov-15 20:42
smallkubi29-Nov-15 20:42 
GeneralRe: how to use delegate to call function and introduce function as content? Pin
Pete O'Hanlon29-Nov-15 21:39
mvePete O'Hanlon29-Nov-15 21:39 

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.