473,395 Members | 1,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Page1_Click Event on Tab Control is not happening..

Hi,

I am working on MS Access 2003.

I have a form and embedded two tab controls on it, one tab control is at top that contains some forms and other tab control is below on the same form.

On First page click event on top tab control, I want to hide below tab control and on Second page click of top tab control, below tab control will be visible.

I have tried to capture this using page click event on top tab control, but click event is not happening at all. Please help me.

Trilok
Jun 28 '07 #1
1 7264
ADezii
8,834 Expert 8TB
Hi,

I am working on MS Access 2003.

I have a form and embedded two tab controls on it, one tab control is at top that contains some forms and other tab control is below on the same form.

On First page click event on top tab control, I want to hide below tab control and on Second page click of top tab control, below tab control will be visible.

I have tried to capture this using page click event on top tab control, but click event is not happening at all. Please help me.

Trilok
The Click() Event of a Page will fire when you click on the Page itself, not on the extending Tab. Use this code in the Change() Event of the Tab Control itself - you may have to change Page Ordering, however.
Expand|Select|Wrap|Line Numbers
  1. Private Sub TabCtl1_Change()
  2. If Me![TabCtl1].Value = 0 Then          'Page 1
  3.   Me![TabCtl2].Visible = False
  4. ElseIf Me![TabCtl1].Value = 1 Then      'Page 2
  5.   Me![TabCtl2].Visible = True
  6. Else
  7.   'do nothing
  8. End If
  9. End Sub
Jun 29 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: alanrn | last post by:
For all you seasoned VB programmers this is going to be a no brainer. However, as a C programmer learning VB I'm having trouble getting my arms around the event-driven nature of VB. Suppose I...
6
by: Dan | last post by:
I've created a pocketpc app which has a startup form containing a listview. The form creates an object which in turn creates a System.Threading.Timer. It keeps track of the Timer state using a...
2
by: Wilfried Mestdagh | last post by:
Hi, I create a class whitch creates a thread. When thread finish it has to fire event. But I want to fire this event in the context of the thread that created the class (usually main thread)....
3
by: Big D | last post by:
I have a class that inherits from System.Web.Ui.Usercontrol... all is basically is is a button which is created progammatically such as: public abstract class BaseFrontEndEditor :...
4
by: The Alchemist | last post by:
I am having a problem with a dynamically-generated Datagrid. It is important to point out that this problem does not exist with a design-time created Datagrid, but only with a dynamically generated...
1
by: Jeff Evans | last post by:
Hi, I was wondering if it's possible to remove a Control c from a Controls collection in the parent's event handler for an event fired by c. For instance let's say we have public class...
2
by: Tim_Mac | last post by:
hi, i have an aspx page which dynamically loads a user control and adds it to a placeholder. the control is recreated and added to the placeholder for postbacks as well. the user control...
5
by: Vincent | last post by:
I have a bound listbox control on one of my forms that has an associated afterupdate event. When this event is invoked, I lock the control to prevent the user from clicking on it more than once....
3
by: Academia | last post by:
If the user types into the TextBox of a combobox it works OK. But if he hold a key down so the letter repeats quickly the code runs into trouble. My questions are: Is it true that an event's...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.