Tej Posted June 1, 2009 Report Share Posted June 1, 2009 Hi , I am using Chart FX 6.2 version for .Net. I would like to use a custom scroll bar or say a track bar rather, toscroll through the graph instead of in-built chartFX scrollbar. Iwould like to know how to do this. Also Chart FX in-built scrollbarshould not be visible. The Property 'ExtraStyle' does not come into the 6.2 version as it comes in the 7 version. How should I go about it? Please help me on this. It would be a great help if someone can provide sample code for this. Thanks & Regards, Tej Quote Link to comment Share on other sites More sharing options...
TatianaG Posted June 1, 2009 Report Share Posted June 1, 2009 You can add a TrackBar to your form and use the following code to scroll through the graph: private void trackBar1_Scroll(object sender, EventArgs e) { chart1.AxisX.ScrollPosition = trackBar1.Value; } Also add this line within the Form Load: trackBar1.Maximum = chart1.NValues; //or you can use (int)chart1.AxisX.Max if you previously set this value to your chart. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.