954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

tab control (tabPage)

Hi,

I am developing an app with a Tab control (5 tab pages). On
one of the tab pages I need a method to run upon clicking
on the tab or entering the tab page. I have tried the following

this.tabPage2.Click += new System.EventHandler(this.tabPage2_Click);

also have tried:

this.tabPage2.Enter += new System.EventHandler(this.tabPage2_Enter);

but neither will call the method tabPage2_Click or tabPage2_Enter

Anybody have any ideas?

aether1
Newbie Poster
3 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

s'alright, I figured it out myself

aether1
Newbie Poster
3 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

Ok, and what are the solution to the tabpage click event?
Best regards,
Gitte

gitchen
Newbie Poster
1 post since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

can any one post sample code on this.

aryan_naren
Newbie Poster
1 post since May 2010
Reputation Points: 10
Solved Threads: 0
 

@aryan_naren

Please do not resurrect old threads. If you have any questions please ask. .... You are welcome to start your own threads.

Please read the forum rules

1. http://www.daniweb.com/forums/faq.php?faq=daniweb_policies
2. http://www.daniweb.com/forums/thread78223.html


Thread Closed.

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You