Quote Originally Posted by chris128
Well, lets say your Inventory tab page is named InventoryTab you could do this in the SelectedIndexChanged event handler of your tab control:
vb Code:
  1. If MyTabControl.SelectedTab.Name = "InventoryTab" Then
  2. 'Run your method here
  3. End If

That help?
You should use the objects themselves instead of strings to identify them wherever possible:
vb.net Code:
  1. If MyTabControl.SelectedTab Is Me.InventoryTab Then