User (Legacy) Posted February 5, 2002 Author Report Share Posted February 5, 2002 I added subs for the MouseDown, and the DoubleClick Events to one of the sample apps, with nothging more than a message box to show what was in the "e object" I can't for the life of me get these things to fire. any help would be appreciated. Thanks. Kent. Link to comment Share on other sites More sharing options...
User (Legacy) Posted February 5, 2002 Report Share Posted February 5, 2002 I added subs for the MouseDown, and the DoubleClick Events to one of the sample apps, with nothging more than a message box to show what was in the "e object" I can't for the life of me get these things to fire. any help would be appreciated. Thanks. Kent. Link to comment Share on other sites More sharing options...
Software FX Posted February 5, 2002 Report Share Posted February 5, 2002 Are you adding the code for the events manually or letting Visual Studio generate the event-plumbing for you ? This is what I did ... - Start a new C# Windows Form Application - Drop ChartFX.Lite - Making sure the chart is the selected object, click the events button in the properties window - Double Click the event labeled "DoubleClick" (Yes, it sounds weird) - Visual Studio will show the code editor inside a function like this private void chart1_DoubleClick(object sender, SoftwareFX.ChartFX.Lite.MouseEventArgsX e) { } - Add a line code such as MessageBox.Show("Double Click") - Run the project and double click on a marker (bar, pie slice, etc.) If you look at the code generated in the "Windows Form Designer generated code" region you should see this this.chart1.Location = new System.Drawing.Point(16, 16); this.chart1.Name = "chart1"; this.chart1.Size = new System.Drawing.Size(256, 216); this.chart1.TabIndex = 0; this.chart1.DoubleClick += new SoftwareFX.ChartFX.Lite.MouseEventHandlerX(this.chart1_DoubleClick); Note the DoubleClick delegate code generated by VS.Net -- Regards JC Software FX Support "Kent Hendrix" <kahnews@profileplus.com> wrote in message news:lTMRpdnrBHA.2652@webserver1.softwarefx.com... > I added subs for the MouseDown, and the DoubleClick Events to one of the > sample apps, with nothging more than a message box to show what was in the > "e object" > > I can't for the life of me get these things to fire. any help would be > appreciated. > > Thanks. > > Kent. > > Link to comment Share on other sites More sharing options...
Software FX Posted February 5, 2002 Report Share Posted February 5, 2002 Are you adding the code for the events manually or letting Visual Studio generate the event-plumbing for you ? This is what I did ... - Start a new C# Windows Form Application - Drop ChartFX.Lite - Making sure the chart is the selected object, click the events button in the properties window - Double Click the event labeled "DoubleClick" (Yes, it sounds weird) - Visual Studio will show the code editor inside a function like this private void chart1_DoubleClick(object sender, SoftwareFX.ChartFX.Lite.MouseEventArgsX e) { } - Add a line code such as MessageBox.Show("Double Click") - Run the project and double click on a marker (bar, pie slice, etc.) If you look at the code generated in the "Windows Form Designer generated code" region you should see this this.chart1.Location = new System.Drawing.Point(16, 16); this.chart1.Name = "chart1"; this.chart1.Size = new System.Drawing.Size(256, 216); this.chart1.TabIndex = 0; this.chart1.DoubleClick += new SoftwareFX.ChartFX.Lite.MouseEventHandlerX(this.chart1_DoubleClick); Note the DoubleClick delegate code generated by VS.Net -- Regards JC Software FX Support "Kent Hendrix" <kahnews@profileplus.com> wrote in message news:lTMRpdnrBHA.2652@webserver1.softwarefx.com... > I added subs for the MouseDown, and the DoubleClick Events to one of the > sample apps, with nothging more than a message box to show what was in the > "e object" > > I can't for the life of me get these things to fire. any help would be > appreciated. > > Thanks. > > Kent. > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.