Shamil Salakhetdinov
shamil at smsconsulting.spb.ru
Tue Feb 18 10:42:01 CST 2003
<<< The problem is in knowing who is the last control in the tab order >>> John, Why not just add to your framework yet another class responsible for the finding of the enabled control with the maximal .TabIndex property value of the tab page .Controls collection and dynamically setting event handler for LostFocus event? HTH, Shamil ----- Original Message ----- From: "John W. Colby" <jcolby at colbyconsulting.com> To: <accessd at databaseadvisors.com> Sent: Tuesday, February 18, 2003 6:37 PM Subject: RE: [AccessD] A2K - Preventing the tab getting the focus > Yep, that'll work. The problem is in knowing who is the last control in the > tab order (and who is the first!. Add a control behind the last or in front > if the first and your code breaks. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-admin at databaseadvisors.com > [mailto:accessd-admin at databaseadvisors.com]On Behalf Of Heenan, Lambert > Sent: Tuesday, February 18, 2003 10:22 AM > To: 'accessd at databaseadvisors.com' > Subject: RE: [AccessD] A2K - Preventing the tab getting the focus > > > You'd think you could just set the tab control's Tab Stop property to "No", > but when you do so you also disable cyclic tabbing all together. The > workaround... > > In the last control's LostFocus event... > > FirstControl.SetFocus > > No dummy control needed, not quite so kludgy. > > Lambert > > > > -----Original Message----- > > From: John W. Colby [SMTP:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 18, 2003 10:09 AM > > To: AccessD > > Subject: [AccessD] A2K - Preventing the tab getting the focus > > > > Is there any way to prevent the tab from getting the focus. When the user > > tabs out of the last control in the tab order, the focus goes to the tab > > page itself (up in the tab doodad at the top) then the next tab puts it > > back > > down into the page, first tab control. In the olden days we would put a > > dummy control behind the last control in the tab order and when that got > > the > > focus, it would place the focus on the first object in the tab order. So > > kludgy. Is there any built in method now? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com >