Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
Dark_Limit Browser Beta 1.0.0 - Application brwrs c++.h

Application brwrs c++.h

Caricato da:
Scarica il programma completo

  1. #pragma once
  2.  
  3.  
  4. namespace Dark_LimitBrowserVbeta100 {
  5.  
  6.         using namespace System;
  7.         using namespace System::ComponentModel;
  8.         using namespace System::Collections;
  9.         using namespace System::Windows::Forms;
  10.         using namespace System::Data;
  11.         using namespace System::Drawing;
  12.  
  13.         /// <summary>
  14.         /// Riepilogo per Form1
  15.         ///
  16.         /// AVVISO: se si modifica il nome della classe, sarà necessario modificare la
  17.         ///          proprietà 'Nome file di risorse' relativa allo strumento Compilatore di risorse gestite
  18.         ///          associato a tutti i file RESX da cui dipende la classe. In caso contrario,
  19.         ///          le finestre di progettazione non saranno in grado di interagire correttamente con le
  20.         ///          risorse localizzate associate al form.
  21.         /// </summary>
  22.         public ref class Form1 : public System::Windows::Forms::Form
  23.         {
  24.         public:
  25.                 Form1(void)
  26.                 {
  27.                         InitializeComponent();
  28.                         //
  29.                         //TODO: aggiungere qui il codice del costruttore.
  30.                         //
  31.                 }
  32.  
  33.         protected:
  34.                 /// <summary>
  35.                 /// Liberare le risorse in uso.
  36.                 /// </summary>
  37.                 ~Form1()
  38.                 {
  39.                         if (components)
  40.                         {
  41.                                 delete components;
  42.                         }
  43.                 }
  44.         private: System::Windows::Forms::MenuStrip^  menuStrip1;
  45.         protected:
  46.         private: System::Windows::Forms::MenuStrip^  menuStrip2;
  47.         private: System::Windows::Forms::ToolStripMenuItem^  browserToolStripMenuItem1;
  48.         private: System::Windows::Forms::ToolStripMenuItem^  indietroToolStripMenuItem1;
  49.         private: System::Windows::Forms::ToolStripMenuItem^  avantiToolStripMenuItem1;
  50.         private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator4;
  51.         private: System::Windows::Forms::ToolStripMenuItem^  aggiornaToolStripMenuItem;
  52.         private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator5;
  53.         private: System::Windows::Forms::ToolStripMenuItem^  fermaCaricamentoToolStripMenuItem1;
  54.         private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator6;
  55.         private: System::Windows::Forms::ToolStripMenuItem^  esciToolStripMenuItem1;
  56.         private: System::Windows::Forms::TextBox^  textBox1;
  57.         private: System::Windows::Forms::Button^  button1;
  58.         private: System::Windows::Forms::Button^  button2;
  59.         private: System::Windows::Forms::Button^  button3;
  60.         private: System::Windows::Forms::Button^  button4;
  61.         private: System::Windows::Forms::Button^  button5;
  62.         private: System::Windows::Forms::WebBrowser^  webBrowser1;
  63.         private: System::Windows::Forms::Label^  label1;
  64.  
  65.         protected:
  66.  
  67.         private: System::ComponentModel::IContainer^  components;
  68.  
  69.         private:
  70.                 /// <summary>
  71.                 /// Variabile di progettazione necessaria.
  72.                 /// </summary>
  73.  
  74.  
  75. #pragma region Windows Form Designer generated code
  76.                 /// <summary>
  77.                 /// Metodo necessario per il supporto della finestra di progettazione. Non modificare
  78.                 /// il contenuto del metodo con l'editor di codice.
  79.                 /// </summary>
  80.                 void InitializeComponent(void)
  81.                 {
  82.                         this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());
  83.                         this->menuStrip2 = (gcnew System::Windows::Forms::MenuStrip());
  84.                         this->browserToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
  85.                         this->indietroToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
  86.                         this->avantiToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
  87.                         this->toolStripSeparator4 = (gcnew System::Windows::Forms::ToolStripSeparator());
  88.                         this->aggiornaToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  89.                         this->toolStripSeparator5 = (gcnew System::Windows::Forms::ToolStripSeparator());
  90.                         this->fermaCaricamentoToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
  91.                         this->toolStripSeparator6 = (gcnew System::Windows::Forms::ToolStripSeparator());
  92.                         this->esciToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
  93.                         this->textBox1 = (gcnew System::Windows::Forms::TextBox());
  94.                         this->button1 = (gcnew System::Windows::Forms::Button());
  95.                         this->button2 = (gcnew System::Windows::Forms::Button());
  96.                         this->button3 = (gcnew System::Windows::Forms::Button());
  97.                         this->button4 = (gcnew System::Windows::Forms::Button());
  98.                         this->button5 = (gcnew System::Windows::Forms::Button());
  99.                         this->webBrowser1 = (gcnew System::Windows::Forms::WebBrowser());
  100.                         this->label1 = (gcnew System::Windows::Forms::Label());
  101.                         this->menuStrip2->SuspendLayout();
  102.                         this->SuspendLayout();
  103.                         //
  104.                         // menuStrip1
  105.                         //
  106.                         this->menuStrip1->Location = System::Drawing::Point(0, 24);
  107.                         this->menuStrip1->Name = L"menuStrip1";
  108.                         this->menuStrip1->Size = System::Drawing::Size(918, 24);
  109.                         this->menuStrip1->TabIndex = 0;
  110.                         this->menuStrip1->Text = L"menuStrip1";
  111.                         //
  112.                         // menuStrip2
  113.                         //
  114.                         this->menuStrip2->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->browserToolStripMenuItem1});
  115.                         this->menuStrip2->Location = System::Drawing::Point(0, 0);
  116.                         this->menuStrip2->Name = L"menuStrip2";
  117.                         this->menuStrip2->Size = System::Drawing::Size(918, 24);
  118.                         this->menuStrip2->TabIndex = 1;
  119.                         this->menuStrip2->Text = L"menuStrip2";
  120.                         //
  121.                         // browserToolStripMenuItem1
  122.                         //
  123.                         this->browserToolStripMenuItem1->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(8) {this->indietroToolStripMenuItem1,
  124.                                 this->avantiToolStripMenuItem1, this->toolStripSeparator4, this->aggiornaToolStripMenuItem, this->toolStripSeparator5, this->fermaCaricamentoToolStripMenuItem1,
  125.                                 this->toolStripSeparator6, this->esciToolStripMenuItem1});
  126.                         this->browserToolStripMenuItem1->Name = L"browserToolStripMenuItem1";
  127.                         this->browserToolStripMenuItem1->Size = System::Drawing::Size(61, 20);
  128.                         this->browserToolStripMenuItem1->Text = L"Browser";
  129.                         //
  130.                         // indietroToolStripMenuItem1
  131.                         //
  132.                         this->indietroToolStripMenuItem1->Name = L"indietroToolStripMenuItem1";
  133.                         this->indietroToolStripMenuItem1->Size = System::Drawing::Size(176, 22);
  134.                         this->indietroToolStripMenuItem1->Text = L"Indietro";
  135.                         this->indietroToolStripMenuItem1->Click += gcnew System::EventHandler(this, &Form1::indietroToolStripMenuItem1_Click);
  136.                         //
  137.                         // avantiToolStripMenuItem1
  138.                         //
  139.                         this->avantiToolStripMenuItem1->Name = L"avantiToolStripMenuItem1";
  140.                         this->avantiToolStripMenuItem1->Size = System::Drawing::Size(176, 22);
  141.                         this->avantiToolStripMenuItem1->Text = L"Avanti";
  142.                         this->avantiToolStripMenuItem1->Click += gcnew System::EventHandler(this, &Form1::avantiToolStripMenuItem1_Click);
  143.                         //
  144.                         // toolStripSeparator4
  145.                         //
  146.                         this->toolStripSeparator4->Name = L"toolStripSeparator4";
  147.                         this->toolStripSeparator4->Size = System::Drawing::Size(173, 6);
  148.                         //
  149.                         // aggiornaToolStripMenuItem
  150.                         //
  151.                         this->aggiornaToolStripMenuItem->Name = L"aggiornaToolStripMenuItem";
  152.                         this->aggiornaToolStripMenuItem->Size = System::Drawing::Size(176, 22);
  153.                         this->aggiornaToolStripMenuItem->Text = L"Aggiorna";
  154.                         this->aggiornaToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::aggiornaToolStripMenuItem_Click);
  155.                         //
  156.                         // toolStripSeparator5
  157.                         //
  158.                         this->toolStripSeparator5->Name = L"toolStripSeparator5";
  159.                         this->toolStripSeparator5->Size = System::Drawing::Size(173, 6);
  160.                         //
  161.                         // fermaCaricamentoToolStripMenuItem1
  162.                         //
  163.                         this->fermaCaricamentoToolStripMenuItem1->Name = L"fermaCaricamentoToolStripMenuItem1";
  164.                         this->fermaCaricamentoToolStripMenuItem1->Size = System::Drawing::Size(176, 22);
  165.                         this->fermaCaricamentoToolStripMenuItem1->Text = L"Ferma caricamento";
  166.                         this->fermaCaricamentoToolStripMenuItem1->Click += gcnew System::EventHandler(this, &Form1::fermaCaricamentoToolStripMenuItem1_Click);
  167.                         //
  168.                         // toolStripSeparator6
  169.                         //
  170.                         this->toolStripSeparator6->Name = L"toolStripSeparator6";
  171.                         this->toolStripSeparator6->Size = System::Drawing::Size(173, 6);
  172.                         //
  173.                         // esciToolStripMenuItem1
  174.                         //
  175.                         this->esciToolStripMenuItem1->Name = L"esciToolStripMenuItem1";
  176.                         this->esciToolStripMenuItem1->Size = System::Drawing::Size(176, 22);
  177.                         this->esciToolStripMenuItem1->Text = L"Esci";
  178.                         this->esciToolStripMenuItem1->Click += gcnew System::EventHandler(this, &Form1::esciToolStripMenuItem1_Click);
  179.                         //
  180.                         // textBox1
  181.                         //
  182.                         this->textBox1->Location = System::Drawing::Point(12, 27);
  183.                         this->textBox1->Name = L"textBox1";
  184.                         this->textBox1->Size = System::Drawing::Size(358, 20);
  185.                         this->textBox1->TabIndex = 2;
  186.                         //
  187.                         // button1
  188.                         //
  189.                         this->button1->Location = System::Drawing::Point(376, 24);
  190.                         this->button1->Name = L"button1";
  191.                         this->button1->Size = System::Drawing::Size(75, 24);
  192.                         this->button1->TabIndex = 3;
  193.                         this->button1->Text = L"Naviga";
  194.                         this->button1->UseVisualStyleBackColor = true;
  195.                         this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
  196.                         //
  197.                         // button2
  198.                         //
  199.                         this->button2->Location = System::Drawing::Point(528, 27);
  200.                         this->button2->Name = L"button2";
  201.                         this->button2->Size = System::Drawing::Size(75, 21);
  202.                         this->button2->TabIndex = 4;
  203.                         this->button2->Text = L"INDIETRO";
  204.                         this->button2->UseVisualStyleBackColor = true;
  205.                         this->button2->Click += gcnew System::EventHandler(this, &Form1::button2_Click);
  206.                         //
  207.                         // button3
  208.                         //
  209.                         this->button3->Location = System::Drawing::Point(626, 27);
  210.                         this->button3->Name = L"button3";
  211.                         this->button3->Size = System::Drawing::Size(75, 21);
  212.                         this->button3->TabIndex = 5;
  213.                         this->button3->Text = L"AVANTI";
  214.                         this->button3->UseVisualStyleBackColor = true;
  215.                         this->button3->Click += gcnew System::EventHandler(this, &Form1::button3_Click);
  216.                         //
  217.                         // button4
  218.                         //
  219.                         this->button4->Location = System::Drawing::Point(730, 27);
  220.                         this->button4->Name = L"button4";
  221.                         this->button4->Size = System::Drawing::Size(75, 21);
  222.                         this->button4->TabIndex = 6;
  223.                         this->button4->Text = L"RICARICA";
  224.                         this->button4->UseVisualStyleBackColor = true;
  225.                         this->button4->Click += gcnew System::EventHandler(this, &Form1::button4_Click);
  226.                         //
  227.                         // button5
  228.                         //
  229.                         this->button5->Location = System::Drawing::Point(833, 27);
  230.                         this->button5->Name = L"button5";
  231.                         this->button5->Size = System::Drawing::Size(75, 21);
  232.                         this->button5->TabIndex = 7;
  233.                         this->button5->Text = L"FERMA";
  234.                         this->button5->UseVisualStyleBackColor = true;
  235.                         this->button5->Click += gcnew System::EventHandler(this, &Form1::button5_Click);
  236.                         //
  237.                         // webBrowser1
  238.                         //
  239.                         this->webBrowser1->Dock = System::Windows::Forms::DockStyle::Fill;
  240.                         this->webBrowser1->Location = System::Drawing::Point(0, 48);
  241.                         this->webBrowser1->MinimumSize = System::Drawing::Size(20, 20);
  242.                         this->webBrowser1->Name = L"webBrowser1";
  243.                         this->webBrowser1->Size = System::Drawing::Size(918, 511);
  244.                         this->webBrowser1->TabIndex = 8;
  245.                         this->webBrowser1->Url = (gcnew System::Uri(L"http://www.pierotofy.it", System::UriKind::Absolute));
  246.                         //
  247.                         // label1
  248.                         //
  249.                         this->label1->AutoSize = true;
  250.                         this->label1->Location = System::Drawing::Point(556, 9);
  251.                         this->label1->Name = L"label1";
  252.                         this->label1->Size = System::Drawing::Size(352, 13);
  253.                         this->label1->TabIndex = 9;
  254.                         this->label1->Text = L"Browser distribuito da : Dark_Limit , membro della community di pierotofy.it";
  255.                         //
  256.                         // Form1
  257.                         //
  258.                         this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
  259.                         this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
  260.                         this->ClientSize = System::Drawing::Size(918, 559);
  261.                         this->Controls->Add(this->label1);
  262.                         this->Controls->Add(this->webBrowser1);
  263.                         this->Controls->Add(this->button5);
  264.                         this->Controls->Add(this->button4);
  265.                         this->Controls->Add(this->button3);
  266.                         this->Controls->Add(this->button2);
  267.                         this->Controls->Add(this->button1);
  268.                         this->Controls->Add(this->textBox1);
  269.                         this->Controls->Add(this->menuStrip1);
  270.                         this->Controls->Add(this->menuStrip2);
  271.                         this->MainMenuStrip = this->menuStrip1;
  272.                         this->Name = L"Form1";
  273.                         this->Text = L"Dark_LimitBrowser V beta 1.0.0";
  274.                         this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
  275.                         this->menuStrip2->ResumeLayout(false);
  276.                         this->menuStrip2->PerformLayout();
  277.                         this->ResumeLayout(false);
  278.                         this->PerformLayout();
  279.  
  280.                 }
  281. #pragma endregion
  282.                 // comunicazione agli oggetti
  283.         private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {
  284.                          }
  285.         private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
  286.  
  287.                                  this->webBrowser1->Navigate(this->textBox1->Text);
  288.  
  289.                          }
  290. private: System::Void aggiornaToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
  291.  
  292.                          this->webBrowser1->Refresh();
  293.  
  294.                  }
  295.  
  296. private: System::Void fermaCaricamentoToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
  297.  
  298.                          this->webBrowser1->Stop();
  299.  
  300.                  }
  301. private: System::Void esciToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
  302.  
  303.                          this->Close();
  304.  
  305.  
  306.                  }
  307. private: System::Void indietroToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
  308.  
  309.                          this->webBrowser1->GoBack();
  310.  
  311.                  }
  312. private: System::Void avantiToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
  313.  
  314.                          this->webBrowser1->GoForward();
  315.  
  316.                  }
  317. private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {
  318.  
  319.                          this->webBrowser1->GoBack();
  320.  
  321.                  }
  322. private: System::Void button3_Click(System::Object^  sender, System::EventArgs^  e) {
  323.  
  324.                          this->webBrowser1->GoForward();
  325.  
  326.                  }
  327. private: System::Void button4_Click(System::Object^  sender, System::EventArgs^  e) {
  328.  
  329.                          this->webBrowser1->Refresh();
  330.  
  331.                  }
  332. private: System::Void button5_Click(System::Object^  sender, System::EventArgs^  e) {
  333.  
  334.                          this->webBrowser1->Stop();
  335.  
  336.                  }
  337. };
  338. }