2-amaliy mashg’ulot vc++ muhiti komponentalari dasturlash muhitining asosiy komponentasi – Form


Download 1.18 Mb.
Pdf ko'rish
bet13/13
Sana25.01.2023
Hajmi1.18 Mb.
#1121753
1   ...   5   6   7   8   9   10   11   12   13
Bog'liq
2-Lab

. Formalar o’rtasidagi chaqiruv 


if
(dr == System::Windows::Forms::
DialogResult
::
OK

return

else

MessageBox
::Show(
"MyForm2 ni yopishda xatolik!"
); 
goto
m; 


private
: System::Void button2_Click(System::
Object
^
sender
, System::
Eve
ntArgs
^
e
) { 
//MyForm2 ga chaqiruv
MyForm2 ^f3 = 
gcnew
MyForm2(); 
f3->Show(); 

private
: System::Void button3_Click(System::
Object
^
sender
, System::
Eve
ntArgs
^
e
) { 
this
->Close(); 

// 
MyForm1 faylida
private
: System::Void button1_Click(System::
Object
^
sender
, System::
Eve
ntArgs
^
e
) { 
this
-
>DialogResult = System::Windows::Forms::
DialogResult
::
OK

this
->Close(); 
//MyForm1 ni yopish

// 
MyForm2 faylida
private
: System::Void button1_Click(System::
Object
^
sender
, System::
Eve
ntArgs
^
e
) { 
this
->Close(); 
} 

Download 1.18 Mb.

Do'stlaringiz bilan baham:
1   ...   5   6   7   8   9   10   11   12   13




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling