Advertisement
Guest User

Untitled

a guest
Nov 20th, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. #pragma once
  2.  
  3. namespace Project1 {
  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 MyForm
  14. /// </summary>
  15. public ref class MyForm : public System::Windows::Forms::Form
  16. {
  17. public:
  18. MyForm(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. ~MyForm()
  31. {
  32. if (components)
  33. {
  34. delete components;
  35. }
  36. }
  37. private: System::Windows::Forms::TextBox^ textBox1;
  38. protected:
  39. private: System::Windows::Forms::Label^ label1;
  40. private: System::Windows::Forms::PictureBox^ pictureBox1;
  41. private: System::Windows::Forms::Button^ button1;
  42. private: System::Windows::Forms::Label^ label2;
  43.  
  44. private:
  45. /// <summary>
  46. /// Required designer variable.
  47. /// </summary>
  48. System::ComponentModel::Container ^components;
  49.  
  50. #pragma region Windows Form Designer generated code
  51. /// <summary>
  52. /// Required method for Designer support - do not modify
  53. /// the contents of this method with the code editor.
  54. /// </summary>
  55. void InitializeComponent(void)
  56. {
  57. this->textBox1 = (gcnew System::Windows::Forms::TextBox());
  58. this->label1 = (gcnew System::Windows::Forms::Label());
  59. this->pictureBox1 = (gcnew System::Windows::Forms::PictureBox());
  60. this->button1 = (gcnew System::Windows::Forms::Button());
  61. this->label2 = (gcnew System::Windows::Forms::Label());
  62. (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox1))->BeginInit();
  63. this->SuspendLayout();
  64. //
  65. // textBox1
  66. //
  67. this->textBox1->Location = System::Drawing::Point(12, 25);
  68. this->textBox1->Name = L"textBox1";
  69. this->textBox1->Size = System::Drawing::Size(131, 20);
  70. this->textBox1->TabIndex = 0;
  71. this->textBox1->TextChanged += gcnew System::EventHandler(this, &MyForm::textBox1_TextChanged);
  72. //
  73. // label1
  74. //
  75. this->label1->AutoSize = true;
  76. this->label1->Location = System::Drawing::Point(12, 9);
  77. this->label1->Name = L"label1";
  78. this->label1->Size = System::Drawing::Size(134, 13);
  79. this->label1->TabIndex = 1;
  80. this->label1->Text = L"Enter class:";
  81. //
  82. // pictureBox1
  83. //
  84. this->pictureBox1->Location = System::Drawing::Point(12, 64);
  85. this->pictureBox1->Name = L"pictureBox1";
  86. this->pictureBox1->Size = System::Drawing::Size(1210, 587);
  87. this->pictureBox1->TabIndex = 2;
  88. this->pictureBox1->TabStop = false;
  89. this->pictureBox1->Click += gcnew System::EventHandler(this, &MyForm::pictureBox1_Click);
  90. //
  91. // button1
  92. //
  93. this->button1->Location = System::Drawing::Point(1034, 20);
  94. this->button1->Name = L"button1";
  95. this->button1->Size = System::Drawing::Size(188, 25);
  96. this->button1->TabIndex = 3;
  97. this->button1->Text = L"Show";
  98. this->button1->UseVisualStyleBackColor = true;
  99. //
  100. // label2
  101. //
  102. this->label2->AutoSize = true;
  103. this->label2->Location = System::Drawing::Point(9, 48);
  104. this->label2->Name = L"label2";
  105. this->label2->Size = System::Drawing::Size(98, 13);
  106. this->label2->TabIndex = 4;
  107. this->label2->Text = L"(EE2)";
  108. //
  109. // MyForm
  110. //
  111. this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
  112. this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
  113. this->ClientSize = System::Drawing::Size(1234, 663);
  114. this->Controls->Add(this->label2);
  115. this->Controls->Add(this->button1);
  116. this->Controls->Add(this->pictureBox1);
  117. this->Controls->Add(this->label1);
  118. this->Controls->Add(this->textBox1);
  119. this->Name = L"MyForm";
  120. this->Text = L"MyForm";
  121. this->Load += gcnew System::EventHandler(this, &MyForm::MyForm_Load);
  122. (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox1))->EndInit();
  123. this->ResumeLayout(false);
  124. this->PerformLayout();
  125.  
  126. }
  127. #pragma endregion
  128. private: System::Void MyForm_Load(System::Object^ sender, System::EventArgs^ e) {
  129. }
  130. private: System::Void pictureBox1_Click(System::Object^ sender, System::EventArgs^ e) {
  131.  
  132. }
  133. private: System::Void textBox1_TextChanged(System::Object^ sender, System::EventArgs^ e) {
  134. }
  135. };
  136. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement