"Alt klavishasi bosildig`n";
6.
label1->Text += String::Format(" Klavyatura kodilari:\n "+
7.
" KeyData: {0} \n KeyCode: {1}\n KeyValue: {2}",
8.
e->KeyData, e->KeyCode, e->KeyValue);}
9.
label2->ForeColor = Color::Red; if(e->Shift==true){
10.
label2->Text=String::Empty; label2->Text +="Shift klavish
bosildig`n";
11.
label2->Text += String::Format(" Klavyatura kodilari:\n "+
12.
" KeyData: {0} \n KeyCode: {1}\n KeyValue:
13.
{2}", e->KeyData, e->KeyCode, e->KeyValue);}
14.
label3->ForeColor = Color::Black ;
15.
if(e->Control==true){label3->Text=String::Empty;
16.
label3->Text+="Ctrl klavish bosildig`n";
17.
label3->Text += String::Format(" Klavyatura kodilari:\n "+
18.
" KeyData: {0} \n KeyCode: {1}\n KeyValue:
19.
{2}", e->KeyData, e->KeyCode, e->KeyValue);} }
Proporties panеlidan Form1 ning KeyPress hodisasi ustida
sichqonchaning chap tugmasini ikki marta bosib, quyidagi kodlar
tеriladi:
1.
bool b;
2.
Do'stlaringiz bilan baham: |