I have composed a Windows Forms Application with few Check Boxes and Install button on it as well. Now I just made a code for Install button's Event Handler which run application when button is clicked. Code is following, and was just made for test if everything works as supposed to.
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
ProcessStartInfo^ startInfo = gcnew ProcessStartInfo( "WinRar.bat" );
startInfo->WindowStyle = ProcessWindowStyle::Normal;
Process::Start( startInfo );
Form4 ^fsecondForm = gcnew Form4(); //next step
this->Hide();
fsecondForm->Show();
Now I want that Install button run only applications which has checked check box. So, If check box1 is checked then run filename1.exe. What code should I use to do it, is there any nice tutorial?
Thanks