Solved

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

Posted on 2014-04-21
6
278 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
  • 3
  • 3
6 Comments
 
LVL 23

Expert Comment

by:Michael74
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:Michael74
ID: 40014162
When using ShowHelp are you calling a chm file or another file type

Michael
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

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

Accepted Solution

by:
Michael74 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Javascript to set controls visibility 5 34
Visual Studio 2013 and Eclipse Neon 6 36
HttpPostedFile 1 26
Create a WebAPI using a generic return parameter 9 25
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

770 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