|
-
Jul 14th, 2000, 09:09 AM
#1
Thread Starter
Hyperactive Member
I have a toolbar with a GO sign on one of the buttons. When you click it, I want it to change to a STOP sign. I have both images in the imagelist, but cannot figure out the code to change the GO sign to a STOP sign. Here is what I have:
If startstop% = 1 Then
Toolbar1.Buttons(10).ToolTipText = "Start Execution"
Toolbar1.Buttons(10).Image = ImageList1.ListImages(10)
ElseIf startstop% = 2 Then
Toolbar1.ToolTipText = "Stop Execution"
Toolbar1.Buttons(10).Image = ImageList1.ListImages(14)
End If
But this is giving me Run Time error 35603 'Invalid Key'
What am I doing wrong?? Thanks for any help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|