Solved

How to set up the 'Home' toolstripbutton in 'Help.ShowHelp' in winform

Posted on 2014-04-21
6
283 Views
Last Modified: 2014-04-22
Hi experts
Could someone tell me how to configure the behaviour of the 'Home' button so that it will go to certain page.
Please see attached screenshot for the 'Home' button and its current behaviour.

Thank you.

I am using Winform, .NET 3.5, C#, and Windows.Forms.Help.
HomeButton.PNG
0
Comment
Question by:dominicwong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 23

Expert Comment

by:Michael Fowler
ID: 40014144
You can set the click event eg

// Navigates webBrowser1 to the home page of the current user. 
private void homeButton_Click(object sender, EventArgs e)
{
    webBrowser1.GoHome();
}

Open in new window


http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.gohome(v=vs.110).aspx
0
 

Author Comment

by:dominicwong
ID: 40014151
Thanks Michael74 for your prompt response.

I apologize for not having mentioned the code I used to bring up the Help. I was actually using the 'Windows.Forms.Help' class and the 'ShowHelp' method.

Help.ShowHelp(parentForm, fileLocation);

Open in new window


Therefore, the click event handler that was suggested might not be applicable in my situation. Could you please point me the right direction.
0
 
LVL 23

Expert Comment

by:Michael Fowler
ID: 40014162
When using ShowHelp are you calling a chm file or another file type

Michael
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:dominicwong
ID: 40014166
Thanks Michael.
I am using chm file.
0
 
LVL 23

Accepted Solution

by:
Michael Fowler earned 500 total points
ID: 40014173
Then again I would look at using HTML Help Workshop to resolve this as the functionality come from the chm file not winforms
http://msdn2.microsoft.com/en-us/library/ms669985.aspx

Michael
0
 

Author Closing Comment

by:dominicwong
ID: 40014179
Thanks Michael for pointing me the right direction.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question