Click here to Skip to main content
15,892,161 members
Home / Discussions / C#
   

C#

 
GeneralRe: Use of << and >> Pin
Joe Rozario16-Dec-09 17:59
Joe Rozario16-Dec-09 17:59 
AnswerRe: Use of << and >> Pin
harold aptroot11-Dec-09 21:45
harold aptroot11-Dec-09 21:45 
QuestionHow to show multiple crystal reports in single Report Viewer. [modified] Pin
sher_azam11-Dec-09 18:35
sher_azam11-Dec-09 18:35 
GeneralRe: How to show multiple crystal reports in single Report Viewer. Pin
Abhinav S11-Dec-09 23:02
Abhinav S11-Dec-09 23:02 
GeneralRe: How to show multiple crystal reports in single Report Viewer. Pin
sher_azam11-Dec-09 23:13
sher_azam11-Dec-09 23:13 
QuestionCustom User Control for Multipoint SDK! Pin
Kushal Gautam11-Dec-09 17:53
Kushal Gautam11-Dec-09 17:53 
AnswerRe: Custom User Control for Multipoint SDK! Pin
krunal255-Feb-10 1:53
krunal255-Feb-10 1:53 
Questionthreading, invoke Pin
benjamin yap11-Dec-09 16:52
benjamin yap11-Dec-09 16:52 
Hi,

I got this chart object on my UI thread called 'm_ChartControl'

I got a method called AddAnnotations that will be run on a new thread in my Form_Load method.

Inside my AddAnnotation method there is a line of code that do this.

Annotation a = m_ChartControl.Charts[0].AnnotationList.CreateAnnotation();

But m_ChartControl.Charts[0].AnnotationList.CreateAnnotation(); is in the UI thread.

How do i create a delegate to put it here?

I have tried this.

private delegate Annotation AddAnnotation();
AddAnnotation addNewAnnotation;
private Annotation CreateAnnotation()
{
    return m_ChartControl.Charts[0].AnnotationList.CreateAnnotation();
}
void cAnnotation()
{
    this.Invoke(addNewAnnotation);
}


I changed this to

Annotation a = cAnnotation();

and i get this error

Error 18 Cannot implicitly convert type 'void' to 'Manco.Chart.CF.Layout.Annotation'
AnswerRe: threading, invoke Pin
Saksida Bojan12-Dec-09 1:58
Saksida Bojan12-Dec-09 1:58 
QuestionSerialPort UART input buffer omits zeroes Pin
Karthik S Prakash11-Dec-09 15:18
Karthik S Prakash11-Dec-09 15:18 
AnswerRe: SerialPort UART input buffer omits zeroes Pin
Luc Pattyn11-Dec-09 15:54
sitebuilderLuc Pattyn11-Dec-09 15:54 
GeneralRe: SerialPort UART input buffer omits zeroes Pin
Karthik S Prakash12-Dec-09 6:05
Karthik S Prakash12-Dec-09 6:05 
QuestionMultithreading in WinForm/WPF Application Pin
sandeepranjan11-Dec-09 15:00
sandeepranjan11-Dec-09 15:00 
Answercross-post Pin
Luc Pattyn11-Dec-09 15:55
sitebuilderLuc Pattyn11-Dec-09 15:55 
AnswerRe: Multithreading in WinForm/WPF Application Pin
#realJSOP13-Dec-09 3:46
mve#realJSOP13-Dec-09 3:46 
QuestionWeb Services Applications Pin
electriac11-Dec-09 12:35
electriac11-Dec-09 12:35 
AnswerRe: Web Services Applications Pin
Luc Pattyn11-Dec-09 13:46
sitebuilderLuc Pattyn11-Dec-09 13:46 
GeneralRe: Web Services Applications Pin
electriac11-Dec-09 14:02
electriac11-Dec-09 14:02 
GeneralRe: Web Services Applications Pin
Luc Pattyn11-Dec-09 14:08
sitebuilderLuc Pattyn11-Dec-09 14:08 
GeneralRe: Web Services Applications Pin
electriac11-Dec-09 14:15
electriac11-Dec-09 14:15 
GeneralRe: Web Services Applications Pin
Luc Pattyn11-Dec-09 14:24
sitebuilderLuc Pattyn11-Dec-09 14:24 
GeneralRe: Web Services Applications Pin
electriac11-Dec-09 14:34
electriac11-Dec-09 14:34 
GeneralRe: Web Services Applications Pin
Luc Pattyn11-Dec-09 14:49
sitebuilderLuc Pattyn11-Dec-09 14:49 
QuestionError: cannot convert from 'ref Scripting.Dictionary [c:\...\Interop.Scripting.dll]' to 'ref Scripting.Dictionary []' Pin
Wes Jones11-Dec-09 11:58
Wes Jones11-Dec-09 11:58 
AnswerRe: Error: cannot convert from 'ref Scripting.Dictionary [c:\...\Interop.Scripting.dll]' to 'ref Scripting.Dictionary []' Pin
Abhinav S11-Dec-09 22:45
Abhinav S11-Dec-09 22:45 

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.