Help with Tab control

moishy

Registered User.
Local time
Today, 23:14
Joined
Dec 14, 2009
Messages
264
Hello all Experts,

Is it possible to disable automatic Tab resize on double clicking?
 
I'm not aware of any such native behavior using a Tabbed Control. Perhaps you could explain a little more clearly.

Also, what version of Access are you running.

If you're running 2007/2010, you're not actually speaking of Tabbed Documents/Forms (as opposed to Overlapping Windows) are you? Your title says Tabbed Control.

Linq ;0)>
 
Last edited:
If you're running 2007/2010, you're not actually speaking of Tabbed Documents/Forms (as opposed to Overlapping Windows) are you? Your title says Tabbed Control.

Linq ;0)>
I'm suspecting that too.
 
The only thing I can think of, with a true Tabbed Control, is that it's not actually 'resizing,' but rather it is too long for the Form, and when changing pages the Focus is on a Control low on the Page, forcing the Page to 'rise' and appearing to make it suddenly larger. We certainly get enough reports of this both here and on other forums.

Linq ;0)>
 
Sorry for the late response, the issue I was having was no issue at all only a silly mistake of mine.
I had set the Auto Resize property of the form to No and re-sized the form by a click on each page setting the Inside Height and Width. I thought that the click event was only for the 'tab' not realizing that it applies the whole page.
btw I was using Access 2003.
 
Well isn't that embarrassing? :o

Actually, we only see this mistake about a dozen times a week! :D The event you need, in order to fire code when clicking on a "tab" is the OnChange event for the Tabbed Control! Here's a boilerplate response I usually post when it does:

The first thing to understand is that tabbed pages are indexed starting with zero, i.e. the first page has a value of 0, second page has a value of 1, third page has a value of 2, etc.

Secondly, you need to understand that the OnClick event of a Tabbed Page only fires when you click on the page itself, not the tab at the top of the page!

Lastly, you need to understand that the Tabbed Control Change Event fires anytime the Tabbed Pages Change. But to base something on the change event, you have to identify the particular page that has focus.

Code:
Private Sub YourTabbedControl_Change()
  Select Case YourTabbedControl 
    Case 0  ‘First Page
      ‘Code for Page 1
    Case 1  ‘Second page
      ‘Code for Page 2
   Case 2   ‘Third page
     ‘Code for Page 3
  End Select
End Sub
Linq ;0)>
 

Users who are viewing this thread

Back
Top Bottom