Progress bar for web browser

Hi all,

New to the c++ programming language and need a little help. I am working on a web browser and have run into a issue. I'm trying to add a progress bar to it and don't know how. Below is the code I have so far which works fine, just don't know where to go from here with the timer1 element and the toolStripStatusLabel and toolStripStatusBar.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
private: System::Void statusStrip1_ItemClicked(System::Object^  sender, System::Windows::Forms::ToolStripItemClickedEventArgs^  e) {
		 }
private: System::Void toolStripButton1_Click(System::Object^  sender, System::EventArgs^  e) {
			 this->webBrowser1->GoBack();
		 }
private: System::Void toolStripButton2_Click(System::Object^  sender, System::EventArgs^  e) {
			 this->webBrowser1->GoForward();
		 }
private: System::Void getItbutton_Click(System::Object^  sender, System::EventArgs^  e) {
			 this->webBrowser1->Navigate(this->webAddresstextBox->Text);
		 }
private: System::Void backToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
			 this->webBrowser1->GoBack();
		 }
private: System::Void forwardToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
			 this->webBrowser1->GoForward();
		 }
private: System::Void toolStripButton5_Click(System::Object^  sender, System::EventArgs^  e) {
			 this->webBrowser1->GoHome();
		 }
private: System::Void toolStripButton4_Click(System::Object^  sender, System::EventArgs^  e) {
			 this->webBrowser1->Stop();
		 }
private: System::Void toolStripButton3_Click(System::Object^  sender, System::EventArgs^  e) {
			 this->webBrowser1->Refresh();
		 }

private: System::Void homeToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
			 this->webBrowser1->GoHome();
		 }
private: System::Void printPageToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
			 this->webBrowser1->ShowPrintDialog();
		 }
private: System::Void printPreviewToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
			 this->webBrowser1->ShowPrintPreviewDialog();
		 }
private: System::Void pageSetupToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
			 this->webBrowser1->ShowPageSetupDialog();
		 }
private: System::Void savePageAsToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
			 this->webBrowser1->ShowSaveAsDialog();
		 }
private: System::Void webAddresstextBox_KeyDown(System::Object^  sender, System::Windows::Forms::KeyEventArgs^  e) {
			 if (e->KeyCode == System::Windows::Forms::Keys::Enter && !this->webAddresstextBox->Text->Equals( "" ))
			 {
				 this->webBrowser1->Navigate( this->webAddresstextBox->Text);
			 }
		 }
private: System::Void webBrowser1_Navigated(System::Object^  sender, System::Windows::Forms::WebBrowserNavigatedEventArgs^  e) {
			 this->webAddresstextBox->Text = this->webBrowser1->Url->ToString();
		 }
private: System::Void webBrowser1_CanGoBackChanged( System::Object^ sender, System::EventArgs^ e){
			 this->toolStripButton1->Enabled =  this->webBrowser1->CanGoBack;
		 }
private: System::Void webBrowser1_CanGoForwardChanged( System::Object^ sender, System::EventArgs^ e){
			 this->toolStripButton2->Enabled = this->webBrowser1->CanGoForward;
		 }
private: System::Void webBrowser1_DocumentTitleChanged( System::Object^ sender, System::EventArgs^ e){
			 this->Text = webBrowser1->DocumentTitle;
		 }

};
}


Any insight would be appreciated :-)
Topic archived. No new replies allowed.