#region 文本框和列表框的click事件
private void tbORcbb_click(object sender, EventArgs e)
{
if (typeof(TextBox).IsInstanceOfType(sender))
{
if (!ifSelected)
{
((TextBox)sender).SelectAll();
ifSelected = true;
}
}
else if (typeof(ComboBox).IsInstanceOfType(sender))
{
if (!ifSelected)
{
((ComboBox)sender).SelectAll();
ifSelected = true;
}
}
}
#endregion
文本框和列表框的click事件,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/swtool/p/3840190.html