Ok here's an example of the code. They all all command buttons.
Code:
Select Case Me.Grid
Case "1", "2", "3"
.mp3ASide.BackColor = RGB(192, 192, 192)
.mp3BSide.BackColor = RGB(192, 192, 192)
.flacASide.BackColor = RGB(192, 192, 192)
.flacBSide.BackColor = RGB(192, 192, 192)
.mp3Mono.BackColor = RGB(192, 192, 192)
.mp3Stereo.BackColor = RGB(192, 192, 192)
.flacMono.BackColor = RGB(192, 192, 192)
.flacStereo.BackColor = RGB(192, 192, 192)
.mp3Mono.Enabled = False
.mp3Stereo.Enabled = False
.flacMono.Enabled = False
.flacStereo.Enabled = False
.mp3ASide.Enabled = False
.mp3BSide.Enabled = False
.flacASide.Enabled = False
.flacBSide.Enabled = False
.mp3Album.Enabled = True
.flacAlbum.Enabled = True
.mp3Album.BackColor = RGB(0, 255, 0)
.flacAlbum.BackColor = RGB(0, 255, 0)
Case Else
'default to A-Side
.flacBSide.Caption = "B-Side"
.mp3BSide.Caption = "B-Side"
.mp3ASide.Enabled = True
.mp3BSide.Enabled = True
.flacASide.Enabled = True
.flacBSide.Enabled = True
.mp3Mono.Enabled = True
.mp3Stereo.Enabled = True
.flacMono.Enabled = True
.flacStereo.Enabled = True
.mp3Album.Enabled = False
.flacAlbum.Enabled = False
.mp3Album.BackColor = RGB(192, 192, 192)
.flacAlbum.BackColor = RGB(192, 192, 192)
I'm just thinking all this repetition is crazy, there must be some way to condense this.
But perhaps not? Or no real advantage ?
Does that help? I didn't mean to be vague.