Hi
I have a c++ software. I use visual studio express 2010.
I want to use forms to enter the data into my software , and also make form manual.
I opened win form project. I created Form1. with few buttons.
I saw the Form1.h file, that was generated.
Do I simply call my function from the Event handlers. like this :
private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e)
my_func(button3);
}
and then refer to the button handler from my function like this ?
void my_func (System::Windows::Forms::Button ^ button_handl) {
button_handl->Text = L" my own text";
}
Is this the way to do it ?
(Note, I don't need web. it is a console application. )