Sai Charan Posted February 25, 2010 Report Share Posted February 25, 2010 Hi I am using this ChartFx in my windows application, we can right click on CHART and select options my question is there any way to find out whether we selected OPTIONS or not. I mean is there any event raise when we clicks on OPTION? Please let me know your valuable comments. Quote Link to comment Share on other sites More sharing options...
juanZ Posted February 25, 2010 Report Share Posted February 25, 2010 Hi, you can get the id of every command you press in the chart by setting up the InternalCommand event handler. please check the following snippet: private void Form1_Load(object sender, EventArgs e) { chart1.InternalCommand += new ChartFX.WinForms.CommandUIEventHandler(chart1_InternalCommand); } void chart1_InternalCommand(object sender, ChartFX.WinForms.CommandUIEventArgs e) { label1.Text = "Command Id: " + e.CommandId.ToString() + "HitType: " + e.HitType.ToString(); } Hope this helps. Quote Link to comment Share on other sites More sharing options...
Sai Charan Posted February 26, 2010 Author Report Share Posted February 26, 2010 Thanks for your post i agree with this but when click CLOSE then there is no event is firing?how get this ? Quote Link to comment Share on other sites More sharing options...
juanZ Posted March 1, 2010 Report Share Posted March 1, 2010 Hi, Can you please explain me a little, which close event from where? Quote Link to comment Share on other sites More sharing options...
Sai Charan Posted March 10, 2010 Author Report Share Posted March 10, 2010 HI Thanks for your help....... i am asking about the CLOSE button which is there in the Properties window. When i click OK , APPLY buttons of PROPERTIES window i can handle the events but when i click CLOSE button which is on same window i can't handle event for this i mean there is event handler for this. I got stuck here. Can you please tell me how can we handle close button? Quote Link to comment Share on other sites More sharing options...
Sai Charan Posted March 10, 2010 Author Report Share Posted March 10, 2010 Hi i have mention CLOSE in previous question sorry it's not CLOSE it's CANCEL button i am asking about the CANCEL button which is there in the Properties window. When i click OK , APPLY buttons of PROPERTIES window i can handle the events but when i click CANCEL button which is on same window i can't handle event for this i mean there is event handler for this. I got stuck here. Can you please tell me how can we handle CANCEL button? 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.