本人初学C#,这段代码中有两句看的不是太明白,还请各位高手帮我看看,谢谢各位了!
if (bln_new)
{
this.txt_id.Text = "自动编号";
this.txt_sCarname.Text = "";
this.txt_action.Text = "new";
this.txt_sCarname.Focus();
this.txt_dBuydate.Text = System.DateTime.Now.Date.ToShortDateString();
this.txt_dVerifydate.Text = System.DateTime.Now.Date.ToShortDateString(); this.txt_sNo.Text = "";
this.txt_re.Text = "";
}
if (bln_new)
{
this.txt_id.Text = "自动编号";
this.txt_sCarname.Text = "";
this.txt_action.Text = "new";
this.txt_sCarname.Focus();
this.txt_dBuydate.Text = System.DateTime.Now.Date.ToShortDateString();
this.txt_dVerifydate.Text = System.DateTime.Now.Date.ToShortDateString(); this.txt_sNo.Text = "";
this.txt_re.Text = "";
}
解决方案 »
- 急!GetPrivateProfileString函数里的字符缓冲区最大能设能多少 有限制吗?
- 解释一小段代码
- 菜鸟入门:C#的中文该怎么念?
- Stream,FileStream,binarystream,streamreader等等~
- C#中的命名空间问题
- 求Visual Studio 2005 Beta 1 Refresh 的下载....
- SocketException ErrorCode=0为什么会被捕获
- C#+sql server中关于Date与string数据转换时的迷惑
- 截取字符串问题 100分 在线等
- 关于客户端的一些程序要重新发布到服务端问题
- 关于Datagridview 的问题
- C#winform如何关闭上一次打开的窗体????求教高手给出代码
就是如果 bln_new是true 就 将 textbox ID为txt_id的text属性设置为自动编号。其他的同理
焦点 放在txt_sCarname上
这一句不明白!谢谢各位朋友了!