سوال در مورد سی شارپ تعداد بازدیدvisits : 437
|
|||||
qwqw1364
|
سوال در مورد سی شارپ
با سلام من سه گروپ باکس دارم در هر گروپ باکس دو تا کمبو باکس کد زیر رو نوشتم private void comboBox2_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar = \'1\') //comboBox7.Text == string.Empty) //&& e.KeyChar >= \'1\' || e.KeyChar == \'0\') { groupBox4.Enabled = false; groupBox6.Enabled = false; linkLabel1.Enabled = false; }
//else if (comboBox7.Text == \"\")// comboBox7.Enabled == false || e.KeyChar == \'0\'comboBox7.Text == \"0\" |||| e.KeyChar = \'1\'
// groupBox2.Enabled = true;
if (comboBox3.Text != \"\" && comboBox3.Text != \"null\" ) // { groupBox4.Enabled = false; groupBox6.Enabled = false;
} if (comboBox2.Text == \"\") e.Handled = false; else e.Handled = false;
if (!(char.IsDigit(e.KeyChar) || e.KeyChar == (char)Keys.Back))
e.Handled = true; string x; x = comboBox2.Text; // وارد کردن دو صفر کی برد غیرفعال میشود //y = comboBox2.Text; if ((x.Trim().StartsWith(\"00\"))) // && (y.Trim().StartsWith(\"00\"))) { if (e.KeyChar >= \'0\' && e.KeyChar = \'0\' && e.KeyChar |
||||
جمعه 17 اردیبهشت 1395 - 12:13 |
|