1. 访问带密码的Access数据库;
要使用这个连接字符串:@"Provider=Microsoft.Jet.OleDB.4.0; Data Source=Your mdb File; Jet OLEDB:Database Password=Your PWD";
2. 使TextBox在输入完按下回车键自动切换焦点。自己继承了TextBox类,生成自己的TextBox
protected override void OnKeyPress(System.Windows.Forms.KeyPressEventArgs e)
  {
   if( e.KeyChar == (char)13 )
   {
    System.Windows.Forms.SendKeys.Send("{TAB}");
   }
   base.OnKeyPress (e);
  }
这样就好了。

相关文章:

  • 2022-12-23
  • 2021-05-02
  • 2021-10-21
  • 2021-06-02
  • 2021-04-06
  • 2022-12-23
  • 2021-10-30
  • 2022-01-20
猜你喜欢
  • 2021-06-14
  • 2021-12-21
  • 2021-09-05
  • 2021-06-16
  • 2021-12-31
  • 2021-12-15
  • 2021-06-10
相关资源
相似解决方案