Tab page event handling

  • Thread starter Thread starter Jan Smith
  • Start date Start date
J

Jan Smith

I have a C# project with tab control with eight tab pages. I would like to
allow the text or the text color to change when an event occurs, then have
the text or text color change back when the tab is clicked. However, I don't
find a click event handler specifically for the individual tab pages. I can
change the tab page text on an unrelated event, but I don't see a handler to
allow it to be changed back when the tab is clicked. Any ideas?



Thanks.
 
I think you can use event SelectedIndexChanged combin with SelectedTab
property.

HTH,
Ryan
 
Note that these events / properties are on the TabControl, not on the
individual TabPages. I agree with Ryan that these are probably what you
want... just didn't want you looking for them in the wrong place. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top