1。。。两个常用操作:
- // winform中隐藏标题栏
- this.FormBorderStyle = FormBorderStyle.None;
- //任务栏不显示
- this.ShowInTaskbar = false;
2..
- #region 判断是否为空
- private void JudgementTextState()
- {
- if (string.IsNullOrEmpty(txtUserName.Text.Trim()))
- {
- throw new Exception("用户帐号不能为空");
- }
- else if (string.IsNullOrEmpty(txtPWord.Text.Trim()))
- {
- throw new Exception("密码不能为空");
- }
- }
- #endregion