Event When Tab is Selected

  • Thread starter Thread starter Wayne Wengert
  • Start date Start date
W

Wayne Wengert

I am using VB in VS.NET 2003 and my startup form has a tab control with 8
different tabs. If the user selects a specific tab I want to populate some
combo boxes and text fields on that tab. I am thinking that it is not wise
to populate every control on every tab at form_load time?

What is the best way to approach this?

TIA

Wayne
 
* "Wayne Wengert said:
I am using VB in VS.NET 2003 and my startup form has a tab control with 8
different tabs. If the user selects a specific tab I want to populate some
combo boxes and text fields on that tab. I am thinking that it is not wise
to populate every control on every tab at form_load time?

Add a handler to the tabcontrol's 'SelectedIndexChanged' event and check
the control's 'SelectedTab' or 'SelectedIndex' property there.
 
Thanks... I'll give that a try.

Wayne

Herfried K. Wagner said:
Add a handler to the tabcontrol's 'SelectedIndexChanged' event and check
the control's 'SelectedTab' or 'SelectedIndex' property there.
 
Back
Top