Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21843

[RESOLVED] Help control array change borderstyle

$
0
0
There are 5 images. When I click on one I want to change it's borderstyle. Only one image can have a borderstyle = 1 at any time. So how I change the previous image borderstyle back to zero.
Code:

        If imgCar(Index).BorderStyle = 0 Then
            imgCar(Index).BorderStyle = 1
        Else
            imgCar(Index).BorderStyle = 0
        End If


Viewing all articles
Browse latest Browse all 21843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>