Yoma
February 23rd, 2009, 03:33 AM
I am making a program that adds a GUI to the Windows IPconfig in Command.
What I want to know is how to stop it from opening the and and closing the console window.
EDIT: I am aware that they already have this out.
but it does NOT work on Vista 64-bit.
Source:
private: System::Void button10_Click(System::Object^ sender, System::EventArgs^ e) {
Application::Exit();
}
private: System::Void button5_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /renew");
}
private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /renew6");
}
private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /release");
}
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /all");
}
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /allcompartments");
}
private: System::Void button6_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /release6");
}
private: System::Void button7_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /flushdns");
}
private: System::Void button8_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /registerdns");
}
private: System::Void button9_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /displaydns");
}
private: System::Void button12_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /showclassid");
}
private: System::Void button11_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /setclassid");
}
private: System::Void button13_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /release");
system("ipconfig /release6");
system("ipconfig /renew");
system("ipconfig /renew6");
}
What I want to know is how to stop it from opening the and and closing the console window.
EDIT: I am aware that they already have this out.
but it does NOT work on Vista 64-bit.
Source:
private: System::Void button10_Click(System::Object^ sender, System::EventArgs^ e) {
Application::Exit();
}
private: System::Void button5_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /renew");
}
private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /renew6");
}
private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /release");
}
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /all");
}
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /allcompartments");
}
private: System::Void button6_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /release6");
}
private: System::Void button7_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /flushdns");
}
private: System::Void button8_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /registerdns");
}
private: System::Void button9_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /displaydns");
}
private: System::Void button12_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /showclassid");
}
private: System::Void button11_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /setclassid");
}
private: System::Void button13_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /release");
system("ipconfig /release6");
system("ipconfig /renew");
system("ipconfig /renew6");
}