I have this program that should execute a piece of code base on the tab that is selected. How do I do it? I've tried:
if tabcontrol1.tabcount=1 then
'Execute this code'
else if tabcontrol1.tabcount=2 then
'execute this code
end if
-But doesn't work, what's the proper way of doing it?