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?

s'alright, I figured it out myself

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

can any one post sample code on this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.