c#中增加控件好象不显示啊
我在原有的form中增加一个控件.怎么不显示该控件啊,还有有时在program.cs中更改了form的启动次序,但运行是还是没有改变,好象我重启了机器才更该过来!!!!!!!!!!!
2007-03-09 11:17
2007-03-09 11:18
2007-03-09 11:22
2007-03-09 11:28
2007-03-09 11:37
2007-03-09 13:19
2007-03-10 14:20
2007-03-12 08:03
string b = this.textBox1.Text.ToString();
string a = this.comboBox2.SelectedItem.ToString();
if (b == "")
{
MessageBox.Show("密码为空,请确认!!");
}
conn.Open();
SqlCommand comm3 = new SqlCommand("select * from jkgeng where name='"+a+"' and pwd='"+b+"'" ,conn);
SqlDataReader reader = comm3.ExecuteReader();
if (reader.Read())
{
Form1 f1 = new Form1();
f1.ShowDialog();
this.Close();
}
else
{
MessageBox.Show("密码错误,请重新输入!!");
this.textBox1.Text = "";
}
2007-03-12 08:05
2007-03-12 08:07