Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- namespace wii_Web_Browser {
- using namespace System;
- using namespace System::ComponentModel;
- using namespace System::Collections;
- using namespace System::Windows::Forms;
- using namespace System::Data;
- using namespace System::Drawing;
- public ref class Form1 : public System::Windows::Forms::Form
- {
- public:
- Form1(void)
- {
- InitializeComponent();
- }
- protected:
- ~Form1()
- {
- if (components)
- {
- delete components;
- }
- }
- private: System::Windows::Forms::WebBrowser^ webBrowser1;
- protected:
- private: System::Windows::Forms::Button^ button1;
- private: System::Windows::Forms::Button^ button2;
- private: System::Windows::Forms::TextBox^ textBox1;
- private: System::Windows::Forms::Button^ button3;
- private: System::Windows::Forms::Button^ button4;
- private:
- System::ComponentModel::Container ^components;
- #pragma region Windows Form Designer generated code
- void InitializeComponent(void)
- {
- this->webBrowser1 = (gcnew System::Windows::Forms::WebBrowser());
- this->button1 = (gcnew System::Windows::Forms::Button());
- this->button2 = (gcnew System::Windows::Forms::Button());
- this->textBox1 = (gcnew System::Windows::Forms::TextBox());
- this->button3 = (gcnew System::Windows::Forms::Button());
- this->button4 = (gcnew System::Windows::Forms::Button());
- this->SuspendLayout();
- this->webBrowser1->AccessibleName = L"";
- this->webBrowser1->Location = System::Drawing::Point(0, 27);
- this->webBrowser1->MinimumSize = System::Drawing::Size(20, 20);
- this->webBrowser1->Name = L"webBrowser1";
- this->webBrowser1->Size = System::Drawing::Size(1052, 506);
- this->webBrowser1->TabIndex = 0;
- this->webBrowser1->Url = (gcnew System::Uri(L"http://google.com", System::UriKind::Absolute));
- this->button1->Location = System::Drawing::Point(8, 2);
- this->button1->Name = L"button1";
- this->button1->Size = System::Drawing::Size(75, 23);
- this->button1->TabIndex = 1;
- this->button1->Text = L"Voltar";
- this->button1->UseVisualStyleBackColor = true;
- this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
- this->button2->Location = System::Drawing::Point(89, 2);
- this->button2->Name = L"button2";
- this->button2->Size = System::Drawing::Size(75, 23);
- this->button2->TabIndex = 2;
- this->button2->Text = L"Avançar";
- this->button2->UseVisualStyleBackColor = true;
- this->button2->Click += gcnew System::EventHandler(this, &Form1::button2_Click);
- this->textBox1->Location = System::Drawing::Point(170, 4);
- this->textBox1->Name = L"textBox1";
- this->textBox1->Size = System::Drawing::Size(625, 20);
- this->textBox1->TabIndex = 3;
- this->textBox1->Text = L"http://www.google.com";
- this->button3->Location = System::Drawing::Point(801, 2);
- this->button3->Name = L"button3";
- this->button3->Size = System::Drawing::Size(75, 23);
- this->button3->TabIndex = 4;
- this->button3->Text = L"Procurar";
- this->button3->UseVisualStyleBackColor = true;
- this->button3->Click += gcnew System::EventHandler(this, &Form1::button3_Click);
- this->button4->Location = System::Drawing::Point(882, 2);
- this->button4->Name = L"button4";
- this->button4->Size = System::Drawing::Size(75, 23);
- this->button4->TabIndex = 5;
- this->button4->Text = L"Site home";
- this->button4->UseVisualStyleBackColor = true;
- this->button4->Click += gcnew System::EventHandler(this, &Form1::button4_Click);
- this->AccessibleRole = System::Windows::Forms::AccessibleRole::Window;
- this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
- this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
- this->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
- this->ClientSize = System::Drawing::Size(1052, 533);
- this->Controls->Add(this->button4);
- this->Controls->Add(this->button3);
- this->Controls->Add(this->textBox1);
- this->Controls->Add(this->button2);
- this->Controls->Add(this->button1);
- this->Controls->Add(this->webBrowser1);
- this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::SizableToolWindow;
- this->Name = L"Form1";
- this->Text = L"Wii Browser";
- this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
- this->ResumeLayout(false);
- this->PerformLayout();
- }
- #pragma endregion
- private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
- }
- private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
- this->webBrowser1->GoBack();
- }
- private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
- this->webBrowser1->GoForward();
- }
- private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) {
- this->webBrowser1->Navigate(this->textBox1->Text);
- }
- private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) {
- this->webBrowser1->Navigate("www.google.com");
- }
- private: System::Void label1_Click(System::Object^ sender, System::EventArgs^ e) {
- }
- private: System::Void label1_Click_1(System::Object^ sender, System::EventArgs^ e) {
- }
- private: System::Void label1_DoubleClick(System::Object^ sender, System::EventArgs^ e) {
- }
- private: System::Void label1_Layout(System::Object^ sender, System::Windows::Forms::LayoutEventArgs^ e) {
- }
- private: System::Void progressBar1_Click(System::Object^ sender, System::EventArgs^ e) {
- }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment