MyForm.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #pragma once
  2. namespace Farrier {
  3. using namespace System;
  4. using namespace System::ComponentModel;
  5. using namespace System::Collections;
  6. using namespace System::Windows::Forms;
  7. using namespace System::Data;
  8. using namespace System::Drawing;
  9. /// <summary>
  10. /// Summary for MyForm
  11. /// </summary>
  12. public ref class MyForm : public System::Windows::Forms::Form
  13. {
  14. public:
  15. MyForm(void)
  16. {
  17. InitializeComponent();
  18. //
  19. //TODO: Add the constructor code here
  20. //
  21. }
  22. protected:
  23. /// <summary>
  24. /// Clean up any resources being used.
  25. /// </summary>
  26. ~MyForm()
  27. {
  28. if (components)
  29. {
  30. delete components;
  31. }
  32. }
  33. private: System::Windows::Forms::Button^ button1;
  34. protected:
  35. private:
  36. /// <summary>
  37. /// Required designer variable.
  38. /// </summary>
  39. System::ComponentModel::Container ^components;
  40. #pragma region Windows Form Designer generated code
  41. /// <summary>
  42. /// Required method for Designer support - do not modify
  43. /// the contents of this method with the code editor.
  44. /// </summary>
  45. void InitializeComponent(void)
  46. {
  47. this->button1 = (gcnew System::Windows::Forms::Button());
  48. this->SuspendLayout();
  49. //
  50. // button1
  51. //
  52. this->button1->Location = System::Drawing::Point(13, 13);
  53. this->button1->Name = L"button1";
  54. this->button1->Size = System::Drawing::Size(75, 23);
  55. this->button1->TabIndex = 0;
  56. this->button1->Text = L"button1";
  57. this->button1->UseVisualStyleBackColor = true;
  58. //
  59. // MyForm
  60. //
  61. this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
  62. this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
  63. this->ClientSize = System::Drawing::Size(284, 261);
  64. this->Controls->Add(this->button1);
  65. this->Name = L"MyForm";
  66. this->Text = L"MyForm";
  67. this->ResumeLayout(false);
  68. }
  69. #pragma endregion
  70. };
  71. }