Web Browser

I have a GroupBox that I display a webpage in. That is all working fine, I am wondering how to add the navigation controls to the groupbox. Currently I can right click and say back or forward and refresh but I would like to add the back arrow and the refresh control.

	private void SetupBrowser_Proofs()
	{
		wbSite7 = new System.Windows.Forms.WebBrowser();
		wbSite7.Dock = System.Windows.Forms.DockStyle.Fill;
		wbSite7.Location = new System.Drawing.Point(0,0);
		wbSite7.MinimumSize = new System.Drawing.Size(20,20);
		wbSite7.Name = "Proofs";
		wbSite7.Size = new System.Drawing.Size(560,323);
		wbSite7.TabIndex = 0;
		gbProofView.Controls.Add(wbSite7);
wbSite7.Navigate (tbOrderProofLink.Text);
	}  

You could add buttons that call these funcs of the browser component:
bool GoBack ();
void Refresh ();
void Refresh ();

I’m pretty sure that is what @Stevensi1018 is doing here.

2 Likes

Combine that with @Stevensi1018’s posts from here:

and here:

and you’ve got a complete solution that mimic’s Epicor’s look and feel.

2 Likes