Advertisement
Guest User

.NET C++ project

a guest
Sep 7th, 2012
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.31 KB | None | 0 0
  1. #pragma once
  2.  
  3. namespace test {
  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.  
  38.     private:
  39.         /// <summary>
  40.         /// Required designer variable.
  41.         /// </summary>
  42.         System::ComponentModel::Container ^components;
  43.  
  44. #pragma region Windows Form Designer generated code
  45.         /// <summary>
  46.         /// Required method for Designer support - do not modify
  47.         /// the contents of this method with the code editor.
  48.         /// </summary>
  49.         void InitializeComponent(void)
  50.         {
  51.             this->components = gcnew System::ComponentModel::Container();
  52.             this->Size = System::Drawing::Size(300,300);
  53.             this->Text = L"Form1";
  54.             this->Padding = System::Windows::Forms::Padding(0);
  55.             this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
  56.         }
  57. #pragma endregion
  58.     };
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement