Click event doesn't work on page

  • Thread starter Thread starter Sunny
  • Start date Start date
S

Sunny

I have tab control with twp pages. I want to execute some codes when user
click on either page. I have written some code on click event of both pages
but when I click it does not execute or enter into that piece of the code.
What should I do to execute the code?
 
I have tab control with twp pages. I want to execute some codes when user
click on either page. I have written some code on click event of both pages
but when I click it does not execute or enter into that piece of the code.
What should I do to execute the code?

Use the Tab Control's Change event instead. The Click event is pretty
useless - it applies only to clicking the *tab*, not the surface area
of the tab page. The Change event fires whenever the user moves to a
new tab page; in your code you can check the Value property of the tab
control object to see which page they chose.

John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
 
Thanks John, works great.
John Vinson said:
Use the Tab Control's Change event instead. The Click event is pretty
useless - it applies only to clicking the *tab*, not the surface area
of the tab page. The Change event fires whenever the user moves to a
new tab page; in your code you can check the Value property of the tab
control object to see which page they chose.

John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
 
Back
Top