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?

Signature
Regards,
Fred Chateau
http://hotelmotelnow.com
Ashot Geodakov - 01 Jun 2007 22:52 GMT
The parent TabControl has a few events that you can handle:
Selecting()
SelectedIndexChanged()
Selected()
>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,
[quoted text clipped - 10 lines]
>
> Am I doing something wrong?