trojanxem

Untitled

Apr 14th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 10.02 KB | None | 0 0
  1. #pragma once
  2.  
  3. namespace projekt {
  4.  
  5.     using namespace System;
  6.     using namespace System::ComponentModel;
  7.     using namespace System::Collections;
  8.     using namespace System::Windows::Forms;
  9.     using namespace System::Data;
  10.     using namespace System::Drawing;
  11.  
  12.     /// <summary>
  13.     /// Summary for Form1
  14.     /// </summary>
  15.     public ref class Form1 : public System::Windows::Forms::Form
  16.     {
  17.     public:
  18.         Form1(void)
  19.         {
  20.             InitializeComponent();
  21.             //
  22.             //TODO: Add the constructor code here
  23.             //
  24.         }
  25.  
  26.     protected:
  27.         /// <summary>
  28.         /// Clean up any resources being used.
  29.         /// </summary>
  30.         ~Form1()
  31.         {
  32.             if (components)
  33.             {
  34.                 delete components;
  35.             }
  36.         }
  37.     private: System::Windows::Forms::Button^  button1;
  38.     private: System::Windows::Forms::TextBox^  textBox1;
  39.     private: System::Windows::Forms::TextBox^  textBox2;
  40.     private: System::Windows::Forms::TextBox^  textBox3;
  41.     private: System::Windows::Forms::TextBox^  textBox4;
  42.     private: System::Windows::Forms::TextBox^  textBox5;
  43.     private: System::Windows::Forms::TextBox^  textBox6;
  44.     private: System::Windows::Forms::TextBox^  textBox7;
  45.     private: System::Windows::Forms::TextBox^  textBox8;
  46.     private: System::Windows::Forms::TextBox^  textBox9;
  47.     private: System::Windows::Forms::TextBox^  textBox10;
  48.     private: System::Windows::Forms::TextBox^  textBox11;
  49.     private: System::Windows::Forms::TextBox^  textBox12;
  50.     private: System::Windows::Forms::TextBox^  textBox13;
  51.     private: System::Windows::Forms::TextBox^  textBox14;
  52.     private: System::Windows::Forms::TextBox^  textBox15;
  53.     private: System::Windows::Forms::TextBox^  textBox16;
  54.     private: System::Windows::Forms::TextBox^  textBox17;
  55.     private: System::Windows::Forms::TextBox^  textBox18;
  56.     private: System::Windows::Forms::TextBox^  textBox19;
  57.     protected:
  58.  
  59.     private:
  60.         /// <summary>
  61.         /// Required designer variable.
  62.         /// </summary>
  63.         System::ComponentModel::Container ^components;
  64.  
  65. #pragma region Windows Form Designer generated code
  66.         /// <summary>
  67.         /// Required method for Designer support - do not modify
  68.         /// the contents of this method with the code editor.
  69.         /// </summary>
  70.         void InitializeComponent(void)
  71.         {
  72.             this->button1 = (gcnew System::Windows::Forms::Button());
  73.             this->textBox1 = (gcnew System::Windows::Forms::TextBox());
  74.             this->textBox2 = (gcnew System::Windows::Forms::TextBox());
  75.             this->textBox3 = (gcnew System::Windows::Forms::TextBox());
  76.             this->textBox4 = (gcnew System::Windows::Forms::TextBox());
  77.             this->textBox5 = (gcnew System::Windows::Forms::TextBox());
  78.             this->textBox6 = (gcnew System::Windows::Forms::TextBox());
  79.             this->textBox7 = (gcnew System::Windows::Forms::TextBox());
  80.             this->textBox8 = (gcnew System::Windows::Forms::TextBox());
  81.             this->textBox9 = (gcnew System::Windows::Forms::TextBox());
  82.             this->textBox10 = (gcnew System::Windows::Forms::TextBox());
  83.             this->textBox11 = (gcnew System::Windows::Forms::TextBox());
  84.             this->textBox12 = (gcnew System::Windows::Forms::TextBox());
  85.             this->textBox13 = (gcnew System::Windows::Forms::TextBox());
  86.             this->textBox14 = (gcnew System::Windows::Forms::TextBox());
  87.             this->textBox15 = (gcnew System::Windows::Forms::TextBox());
  88.             this->textBox16 = (gcnew System::Windows::Forms::TextBox());
  89.             this->textBox17 = (gcnew System::Windows::Forms::TextBox());
  90.             this->textBox18 = (gcnew System::Windows::Forms::TextBox());
  91.             this->textBox19 = (gcnew System::Windows::Forms::TextBox());
  92.             this->SuspendLayout();
  93.             //
  94.             // button1
  95.             //
  96.             this->button1->Location = System::Drawing::Point(181, 227);
  97.             this->button1->Name = L"button1";
  98.             this->button1->Size = System::Drawing::Size(75, 23);
  99.             this->button1->TabIndex = 0;
  100.             this->button1->Text = L"Zakończ";
  101.             this->button1->UseVisualStyleBackColor = true;
  102.             this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
  103.             //
  104.             // textBox1
  105.             //
  106.             this->textBox1->BackColor = System::Drawing::SystemColors::MenuText;
  107.             this->textBox1->ForeColor = System::Drawing::SystemColors::Info;
  108.             this->textBox1->Location = System::Drawing::Point(101, 12);
  109.             this->textBox1->Name = L"textBox1";
  110.             this->textBox1->Size = System::Drawing::Size(100, 20);
  111.             this->textBox1->TabIndex = 1;
  112.             this->textBox1->Text = L"SAPER";
  113.             this->textBox1->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
  114.             //
  115.             // textBox2
  116.             //
  117.             this->textBox2->Location = System::Drawing::Point(51, 53);
  118.             this->textBox2->Name = L"textBox2";
  119.             this->textBox2->Size = System::Drawing::Size(19, 20);
  120.             this->textBox2->TabIndex = 2;
  121.             this->textBox2->TextChanged += gcnew System::EventHandler(this, &Form1::textBox2_TextChanged);
  122.             //
  123.             // textBox3
  124.             //
  125.             this->textBox3->Location = System::Drawing::Point(76, 53);
  126.             this->textBox3->Name = L"textBox3";
  127.             this->textBox3->Size = System::Drawing::Size(19, 20);
  128.             this->textBox3->TabIndex = 3;
  129.             //
  130.             // textBox4
  131.             //
  132.             this->textBox4->Location = System::Drawing::Point(101, 53);
  133.             this->textBox4->Name = L"textBox4";
  134.             this->textBox4->Size = System::Drawing::Size(19, 20);
  135.             this->textBox4->TabIndex = 4;
  136.             //
  137.             // textBox5
  138.             //
  139.             this->textBox5->Location = System::Drawing::Point(51, 79);
  140.             this->textBox5->Name = L"textBox5";
  141.             this->textBox5->Size = System::Drawing::Size(19, 20);
  142.             this->textBox5->TabIndex = 5;
  143.             //
  144.             // textBox6
  145.             //
  146.             this->textBox6->Location = System::Drawing::Point(126, 53);
  147.             this->textBox6->Name = L"textBox6";
  148.             this->textBox6->Size = System::Drawing::Size(19, 20);
  149.             this->textBox6->TabIndex = 6;
  150.             //
  151.             // textBox7
  152.             //
  153.             this->textBox7->Location = System::Drawing::Point(76, 79);
  154.             this->textBox7->Name = L"textBox7";
  155.             this->textBox7->Size = System::Drawing::Size(19, 20);
  156.             this->textBox7->TabIndex = 7;
  157.             //
  158.             // textBox8
  159.             //
  160.             this->textBox8->Location = System::Drawing::Point(101, 79);
  161.             this->textBox8->Name = L"textBox8";
  162.             this->textBox8->Size = System::Drawing::Size(19, 20);
  163.             this->textBox8->TabIndex = 8;
  164.             //
  165.             // textBox9
  166.             //
  167.             this->textBox9->Location = System::Drawing::Point(126, 79);
  168.             this->textBox9->Name = L"textBox9";
  169.             this->textBox9->Size = System::Drawing::Size(19, 20);
  170.             this->textBox9->TabIndex = 9;
  171.             //
  172.             // textBox10
  173.             //
  174.             this->textBox10->Location = System::Drawing::Point(51, 105);
  175.             this->textBox10->Name = L"textBox10";
  176.             this->textBox10->Size = System::Drawing::Size(19, 20);
  177.             this->textBox10->TabIndex = 10;
  178.             //
  179.             // textBox11
  180.             //
  181.             this->textBox11->Location = System::Drawing::Point(76, 103);
  182.             this->textBox11->Name = L"textBox11";
  183.             this->textBox11->Size = System::Drawing::Size(19, 20);
  184.             this->textBox11->TabIndex = 11;
  185.             //
  186.             // textBox12
  187.             //
  188.             this->textBox12->Location = System::Drawing::Point(101, 103);
  189.             this->textBox12->Name = L"textBox12";
  190.             this->textBox12->Size = System::Drawing::Size(19, 20);
  191.             this->textBox12->TabIndex = 12;
  192.             //
  193.             // textBox13
  194.             //
  195.             this->textBox13->Location = System::Drawing::Point(126, 103);
  196.             this->textBox13->Name = L"textBox13";
  197.             this->textBox13->Size = System::Drawing::Size(19, 20);
  198.             this->textBox13->TabIndex = 13;
  199.             //
  200.             // textBox14
  201.             //
  202.             this->textBox14->Location = System::Drawing::Point(51, 129);
  203.             this->textBox14->Name = L"textBox14";
  204.             this->textBox14->Size = System::Drawing::Size(19, 20);
  205.             this->textBox14->TabIndex = 14;
  206.             //
  207.             // textBox15
  208.             //
  209.             this->textBox15->Location = System::Drawing::Point(76, 129);
  210.             this->textBox15->Name = L"textBox15";
  211.             this->textBox15->Size = System::Drawing::Size(19, 20);
  212.             this->textBox15->TabIndex = 15;
  213.             //
  214.             // textBox16
  215.             //
  216.             this->textBox16->Location = System::Drawing::Point(101, 129);
  217.             this->textBox16->Name = L"textBox16";
  218.             this->textBox16->Size = System::Drawing::Size(19, 20);
  219.             this->textBox16->TabIndex = 16;
  220.             //
  221.             // textBox17
  222.             //
  223.             this->textBox17->Location = System::Drawing::Point(126, 129);
  224.             this->textBox17->Name = L"textBox17";
  225.             this->textBox17->Size = System::Drawing::Size(19, 20);
  226.             this->textBox17->TabIndex = 17;
  227.             //
  228.             // textBox18
  229.             //
  230.             this->textBox18->ForeColor = System::Drawing::SystemColors::MenuHighlight;
  231.             this->textBox18->Location = System::Drawing::Point(172, 78);
  232.             this->textBox18->Name = L"textBox18";
  233.             this->textBox18->Size = System::Drawing::Size(100, 20);
  234.             this->textBox18->TabIndex = 18;
  235.             this->textBox18->Text = L"Twój wynik:";
  236.             this->textBox18->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
  237.             //
  238.             // textBox19
  239.             //
  240.             this->textBox19->Location = System::Drawing::Point(172, 103);
  241.             this->textBox19->Name = L"textBox19";
  242.             this->textBox19->Size = System::Drawing::Size(100, 20);
  243.             this->textBox19->TabIndex = 19;
  244.             //
  245.             // Form1
  246.             //
  247.             this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
  248.             this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
  249.             this->ClientSize = System::Drawing::Size(284, 262);
  250.             this->Controls->Add(this->textBox19);
  251.             this->Controls->Add(this->textBox18);
  252.             this->Controls->Add(this->textBox17);
  253.             this->Controls->Add(this->textBox16);
  254.             this->Controls->Add(this->textBox15);
  255.             this->Controls->Add(this->textBox14);
  256.             this->Controls->Add(this->textBox13);
  257.             this->Controls->Add(this->textBox12);
  258.             this->Controls->Add(this->textBox11);
  259.             this->Controls->Add(this->textBox10);
  260.             this->Controls->Add(this->textBox9);
  261.             this->Controls->Add(this->textBox8);
  262.             this->Controls->Add(this->textBox7);
  263.             this->Controls->Add(this->textBox6);
  264.             this->Controls->Add(this->textBox5);
  265.             this->Controls->Add(this->textBox4);
  266.             this->Controls->Add(this->textBox3);
  267.             this->Controls->Add(this->textBox2);
  268.             this->Controls->Add(this->textBox1);
  269.             this->Controls->Add(this->button1);
  270.             this->Name = L"Form1";
  271.             this->Text = L"Form1";
  272.             this->ResumeLayout(false);
  273.             this->PerformLayout();
  274.  
  275.         }
  276. #pragma endregion
  277.     private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {Close();
  278.              }
  279.     private: System::Void textBox2_TextChanged(System::Object^  sender, System::EventArgs^  e) {
  280.              }
  281. };
  282. }
Advertisement
Add Comment
Please, Sign In to add comment