MyForm.h 1.8 KB

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