TabPage Control OnClick Event

  • Thread starter Thread starter Fred Chateau
  • Start date Start date
F

Fred Chateau

I am trying to run code that binds a DataGridView control on a TabPage. I
inserted the code in the TabPage_Click event, but when the tab is clicked,
the event never fires.

I understand it is necessary to set the StandardClick style to enabled. I
can't seem to find a StandardClick style on the TabControl, but I used the
following code in the Form_Load event.

this.SetStyle(ControlStyles.StandardClick, true);
this.UpdateStyles();

Still no click event...

Am I doing something wrong?
 
The parent TabControl has a few events that you can handle:

Selecting()
SelectedIndexChanged()
Selected()
 
Back
Top