K
K
kriitmen2016-09-15 17:42:58
C++ / C#
kriitmen, 2016-09-15 17:42:58

What is this line for?

Recommend books on windows form

#pragma endregion
/*
//вот эта строчка, без нее работает
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
label1->Text = "";
}
*/
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
label1->Text = textBox1->Text;
}

};
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2016-09-15
@Rou1997

This is an event handler created automatically by the Interface Builder (WYSIWYG) and is referenced in InitializeComponent, so if you just remove it, it won't compile.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question