troubleshooting Question

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

Avatar of mainrotor
mainrotor asked on
Visual Basic Classic
4 Comments2 Solutions595 ViewsLast Modified:
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
Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros