#pragma once
namespace YourNamespace {
using namespace System;
using namespace System::Windows::Forms;
public ref class Form1 : public System::Windows::Forms::Form {
public:
Form1(void) {
InitializeComponent();
}
protected:
~Form1() {
if (components) {
delete components;
}
}
private: System::Windows::Forms::Label^ label1;
private: System::ComponentModel::Container ^components;
void InitializeComponent(void) {
this->label1 = (gcnew System::Windows::Forms::Label());
this->SuspendLayout();
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location = System::Drawing::Point(50, 30);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(120, 20);
this->label1->Text = L"Texto en la posición (50, 30)";
//
// Form1
//
this->AutoScaleDimensions = System::Drawing::SizeF(8, 16);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(300, 200);
this->Controls->Add(this->label1);
this->Name = L"Form1";
this->Text = L"Form1";
this->ResumeLayout(false);
this->PerformLayout();
}
};
}