How to know what tab is selected in tab control in vb.net
        Posted  
        
            by user225269
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user225269
        
        
        
        Published on 2010-03-18T12:40:17Z
        Indexed on 
            2010/03/18
            12:41 UTC
        
        
        Read the original article
        Hit count: 366
        
vb.net
|tabcontrol
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?
© Stack Overflow or respective owner