Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - VB - Menu Arrays | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
SyntaxLegend

Double metal axe
Level: 25

Posts: 91/222
EXP: 78264
For next: 11356

Since: 04-21-04
From: Australia

Since last post: 20 days
Last activity: 10 hours
Posted on 10-08-04 03:28 PM Link | Quote
I have set up a menu in VB, with the name of "p1color" also with indexes 1 to 4. What i want it to do is when you select a color, it changes the color of player1.FillColor, I have done this before but i cannot remember how, What i have got is this:
Private Sub p1color_Click(Index As Integer)
If p1color(1).Checked = True Then
player1.FillColor = RGB(255, 0, 0)
ElseIf p1color(2).Checked = True Then
player1.FillColor = RGB(0, 0, 0)
ElseIf p1color(3).Checked = True Then
player1.FillColor = RGB(255, 255, 0)
ElseIf p1color(4).Checked = True Then
player1.FillColor = RGB(0, 255, 0)
End If
End Sub
Then i relised thats when it clicks, what i want it to do is re check the option i click and change the color to what i want.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - VB - Menu Arrays | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.006 seconds.