Form 1 ning button komponentasi kodi
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
if(checkBox1->Checked){
if(textBox1->Text=="anorovelbek94@gmail.com" && textBox2->Text=="12345678"){
Form2^form2=gcnew Form2();
this->Hide();
form2->Show();
}
else{
Form3^form3=gcnew Form3();
this->Hide();
form3->Show( } }
Form 3 ning kodi
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
if(textBox1->Text=="anorovelbek94@gmail.com" && textBox2->Text=="12345678"){
MessageBox::Show("Hammasi to`g`ri.","Xatolik haqida...");
}
else{
MessageBox::Show("Login yoki parol xato!!!!","Xatolik haqida...");
}
}
Do'stlaringiz bilan baham: |