Quote:
Originally Posted by McSARS DOUBLE SARS setvar tmlnutskicked = 0 setvar jealousy = 1 LOOP IF $location = "at gdc" THEN tmlnutskicked = tmlnutskicked + jealousy RUN LOOP |
This probably won't compile, but it should be close. XD
Code:
ref class BestProgramEvar : public System::Windows::Forms::Form {
public:
BestProgramEvar() : System::Windows::Forms::Form() {
System::Windows::Forms::Label^ pLabel = gcnew System::Windows::Forms::Label;
pLabel->Text = "Look @ me! I'm at GDC!";
pLabel->Location = System::Drawing::Point(0, 0);
pLabel->Size = System::Drawing::Size(200, 50);
System::Windows::Forms::Button^ pButton = gcnew System::Windows::Forms::Button;
pButton->Text = "I don't wanna hear it anymore, TML!";
pButton->Location = System::Drawing::Point(0, 50);
pButton->Size = System::Drawing::Size(200, 50);
pButton->Click += gcnew System::Windows::Forms::EventHandler(&BestProgramEvar::CloseForm);
pButton->MouseOver += gcnew System::Windows::Forms::MouseEventHandler(&BestProgramEvar::Haha);
this->Contents->Add(pLabel);
this->Contents->Add(pButton);
this->Size = System::Drawing::Size(200, 100);
this->Show();
}
protected:
~BestProgramEvar() {}
private:
void CloseForm(System::Object^, System::EventArgs^) {
this->Close();
}
void Haha(System::Object^, System::Windows::Forms::MouseEventArgs^ pArgs) {
this->Location = System::Drawing::Point(pArgs->X, pArgs->Y);
// can't touch the button; sucks to be you!
}
};
[System::STAThread]
int main(cli::array<System::String^>^)
{
BestProgramEvar^ pWindow = gcnew BestProgramEvar;
pWindow->Run();
}