Link to home
Start Free TrialLog in
Avatar of mainrotor
mainrotor

asked on

I need help removing an image from a TabStrip control in VB6

Hi Experts,
I add an image to a tab on a tabstrip control if a boolean is set to true.  I want to remove the image from the tab if the boolean is false.  Please let me know if the following code is correct.

    If boolImage = True Then
        Set TabStrip1.ImageList = ImageList2
        TabStrip1.Tabs(5).Caption = ""
        TabStrip1.Tabs(5).Image = 1
    Else
        TabStrip1.Tabs(5).Image = Nothing
    End If

Thanks in advance,
mrotor
ASKER CERTIFIED SOLUTION
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@vb_elmer: How is that different from what I posted?
@mainrotor: Do you need any more help here?