Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6165687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:12:35+00:00 2026-05-23T22:12:35+00:00

Hi I am using ms chart control in win-forms application. I have a problem

  • 0

Hi I am using ms chart control in win-forms application.

I have a problem with mouse click event handler for chart control. I need to check that like this if the mouse click event for chart control is true then do something like this i have done the code like this

        bool this.kpiChartControl.MouseClick = false;


        if (this.kpiChartControl.MouseClick != true)
        {
                //do something.....
        }


   ERROR :  The event system.windows.forms.control.mouseclick can only appear on left hand side of += or -= 

would any one pls help on this…….

I need to check like this if mouse click event for mschart is true ” do something “….

Modified code :

 this.kpiChartControl.MouseClick+= new MouseEventHandler(void (object , MouseEventArgs e))

still it was giving error can any help me on this…

MODIFIED CODE :

       if( this.kpiChartControl.MouseClick+= new MouseEventHandler(void (object  sender , MouseEventArgs e)) == true)
      {
         // do something

       }

Error :Invalid term Void

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:12:35+00:00Added an answer on May 23, 2026 at 10:12 pm

    You need to register to the event; as such:

    this.kpiChartControl.MouseClick += (obj, sender) => { //Do something
    }

    See also: http://msdn.microsoft.com/en-us/library/aa645739(VS.71).aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a Microsoft Chart control (system.windows.forms.datavisualization.charting.chart) in a Windows forms application, vb.net
I am using the .NET Chart Control library that comes with .NET 4.0 Beta
I'm implementing a scatter plot using the MS Chart Control .NET 3.5, WinForms, C#.
I’m using Microsoft Chart extensions that ship with VS 2010. This suits my needs
I am trying to generate a chart using the MS Chart Control in ASP.NET
I am using the Telerik rad chart control to create a bar chart of
I'd like to show an ASP.NET Chart control that shows a distribution of grades.
I'm fairly new to database programming in WinForms, and have been using BindingSource, DataSet,
I am looking people's opinion and experience on using chart controls within an ASP.NET
is there a way to change size of chart when using method Chart.SaveImage() from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.