vorticd.blogg.se

Navigation pane title bar access
Navigation pane title bar access







The problem is that I can't ask the users to do this. One strange thing I noticed during my search, is that this does not happen when I execute a "Compact & Repair" at the start. The problem is, that when the user presses the "Enter" button once more (thus after the login form has been closed), the first object in the navigation pane (usualy the first table) is opened even if the navigation pane is hidden. The user presses "Enter" again and after the login details have been checked, the menu's (customized ribbon) is loaded/enabled and the login form When the user presses the "Enter" button again, the buttom gets the focus. Thanks to Andrey's code, the next textbox gets the focus and The user enters his login and presses "Enter". There are only two textboxes (txtLogin and txtPassword) and one button (cmdConfirm) on this form. When the database is opened, a login form appears. I'm not sure I understand what you mean with "Do you have the Enter Button's Property, Default=Yes?" but let me explain again what I want. The only interesting thing for me is how pressing Enter having focus on a button leads to changing focus rather than to firing button's Click event.Īndrey V Artemyev | Saint-Petersburg, Russia In txt_password's After Update event set focus to the third control: Private Sub txt_password_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then Me.btn_ok.SetFocus End IfEnd SubĪny other scenario of pressing Enter should not lead to focus changing since the tab stop is turned off. In txt_login's After Update event set focus to the second control: Private Sub txt_login_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then Me.txt_password.SetFocus End IfEnd SubĤ. In Form's Load event set focus to the first control: Private Sub Form_Load() Me.txt_login.SetFocusEnd Subģ. Let me call these controls respectively txt_login, txt_password and btn_ok.Ģ. For every control (login textbox, password textbox, ok button) set Tab Stop property to No. Really? Navigation pane receives focus even it is hidden?Īs a workaround I can propose to try the following:ġ.









Navigation pane title bar access