Hi guys a quick question

I just want to ask how you code in visual basic the following scenario.

Example i have four(4) tabpage in a tab control
when the selected tabpage = to my Inventory tab page it will call a certain function else it will end the process..

Something like that po..

Thanks