Hi everybody,
I am developing a VB.NET application with visual Studio Express on Windows 7.
In this app (1 form app) I have one mschart graph made up from 3 chartareas, one below the others. Data is read from an UDP port, and the 3 chart areas are aligned and "in sync" (they are 3 time-functions graphs). The sync is done with this code, executed on the firts 2 chartareas:
ChartAreas(i).AlignWithChartArea = "AREA" & (3)
ChartAreas(i).AlignmentOrientation = AreaAlignmentOrientations.Vertical
ChartAreas(i).AlignmentStyle = AreaAlignmentStyles.All
I have also implemented cursor and selections on the chart areas with this code:
ChartAreas(i).CursorX.IsUserEnabled = True
ChartAreas(i).CursorX.IsUserSelectionEnabled = True
ChartAreas(i).CursorX.AutoScroll = True
ChartAreas(i).AxisX.ScaleView.Zoomable = True
Up to this point everything is ok: the 3 chartareas moves alltogether as soon as new data arrives, and I can click on the graph, see the cursor and zoom on the chart.
Now the problem: I decided not to see just the sample number (1, 2, 3...) on the x axis but the current hour: hh:mm:ss with DateTime.Now
Unfortunatly, now if I click on the chartareas I cannot see the cursor any more and I cannot select and zoom on them.
I hope I have been clear enough, if you have doubts or suggestions please let me know.
Rob