08-30-2012 03:40 AM
Hi,
I have created a cursor by using:
XYCursor cursor = new XYCursor()
and immediatelly after creation I want to set its default X-Position by using:
cursor.XPosition = 5;
but it is crashing saying : object reference not set to an instance of an object
any ideas?
Solved! Go to Solution.
08-30-2012 07:56 AM
Hi,
You need to assign the cursor to a plot and add it to the graph
XYCursor myCursor = new XYCursor(this.waveformPlot1); waveformGraph1.Cursors.Add(myCursor); myCursor.XPosition = 5; myCursor.YPosition = 5;
Curt