Link to home
Start Free TrialLog in
Avatar of thefridgeVFA
thefridgeVFA

asked on

Need a Control (Back Arrow, Forward Arrow, etc.) for WebBrowser Navigation

This is my first question, so pardon me if I placed this in the wrong Zone (I tried VB Controls, but no responses).  I am also very new to Visual Studio 2005 and VB, so be gentle.

Form1.vb has;
  WebBrowser1,
  Panel1,
  MenuStrip1 (and several ToolStripMenuItem controls)
  ImageList1 (empty)

I would like to add the typical MS Internet Explorer 7 Navigation Buttons to Panel1.  I presume (bad move Newb!) that the Back Arrow, Forward Arrow, Drop down for history, Refresh and Stop controls (all with appropriate images) are available in one or more Controls.  I do not need a URL field for my Panel Control since my application will always start at the same web page.

The ideal answer would provide the required Control or code and images, and include step-by-step instructions for VS2005, with appropriate explanations along the way.  In the event this Control does not exist, instructions detailed enough for me to create it would suffice.

Thanks.
Avatar of sikunj
sikunj

1. Add referance of iexplorer (dll) in your project.
2. Use simple controls on form that you want.
3. On their click event call dll's methods.
=============================================
1. Make a new browser in vs2005(which is not tough as there are browser controls available readily)
Please find the apprropriate links to make a browser control.
Avatar of thefridgeVFA

ASKER

I will need considerably more detail to understand your answer.  Could you elaborate on the following (using your numbers)
1. Add referance of iexplorer (dll) in your project.
How do I do this?  When I right-click the Solution and click "Add Reference..." I do not see the dll you mention under the .NET or COM tabs (or any of the others either).

Please provide similar step-by-step (click-by-click) detail throughout.  Thanks.
.NET 2.0 has a new WebBrowser control in the System.Windows.Forms namespace
ASKER CERTIFIED SOLUTION
Avatar of sikunj
sikunj

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks.  Sorry about my delay in responding.  To properly digest your replies, I read chapters 1-28 in Rod Stephen's Visual Basic 2005 (Programmer's Reference).  I understood most of it, but I obviously still have a lot to learn.

Unless I missed something, your answer did not point me to a Control(s) which provides the WebBrowser navigation I asked for, including the MS IE 7 images and code.  Your advice seems more focused on WebBrowser basics, which was not my question.  Can you provide me with a reference to, or the actual code for, Control(s) and code which provide the MS IE 7 outcome I desire?

Thanks again.
Thanks for your help.  I ended up creating a control from scratch.

From what I have learned since posting my question, I presume the correct answer is "There is no ready-to-use control you can add to a Form which provides Browser navigation.  You need to build it yourself.  Here is how..."  This would require a much longer answer than you provided.  Even though you did not answer my question the way I wanted, I appreciate your effort.