i have Winform application and i want to add the small help button with about option to show my application version number (i am using Application.ProductVersion), how can i do it ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
First, to activate the help button go to your Form properties.
Set MaximizeBox and MinimizeBox to false and HelpButton to true.
This will display the Help button.
Then go to the events for the form and double click HelpButtonClicked.
In this function you place whatever code you use to display your version number.
I would also recommend you to use:
System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()