- 博客(3)
- 收藏
- 关注
原创 使用回车按键直接登录实例回车键触发按钮事件
private void Form1_KeyDown(object sender, KeyEventArgs e) { string user = textBox1.Text.Trim(); if (e.KeyCode == Keys.Enter) //判断是否按了回车键 { ...
2020-05-05 17:47:01
496
原创 c# winform连接sql server实现跳转登录页面简单实例
private void NewMethod() { //获取文本框中的值 username = this.textBox1.Text.Trim(); userpassword = this.textBox2.Text.Trim(); if (username.Equals("") |...
2020-05-05 17:37:37
823
原创 C# winform窗体位置设置(StartPosition属性)
CenterParent 窗体在其父窗体中居中。CenterScreen 窗体在当前显示窗口中居中,其尺寸在窗体大小中指定。Manual 窗体的位置由Location属性确定。WindowsDefaultBounds 窗体定位在Windows默认位置,其边界也由Windows默认决定。WindowsDefaultL...
2020-05-04 11:14:36
1873
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人