c # little knowledge

1. To set the open window without closing other operations can not be performed using the ShowDialog () method to achieve this.

2. login screen, the user information losers, usually automatically set the focus to the Login button, users only need to quickly enter the Enter key. Just change the name of the form AcceptButton attribute to the login button.

3. The default window to the middle of the screen: modified property to form StartPosition CenterScreen can.

4. Add to the current time sqlserver database: insert into hello (registerTime) values ​​(DateTime.Now ());

Guess you like

Origin www.cnblogs.com/wxl123/p/11425625.html