Results 1 to 2 of 2

Thread: ToolBar Question

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Cool

    I made a toolbar and I want to assign a code to each button so when you click on the toolbar button it does SOMETHING. How do I do that???
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  2. #2
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    Code:
    Private Sub Toolbar1_ButtonClick(ByVal Button As ComctlLib.Button)
        Select Case Button.Key
    
        Case Is = "pic1"
        
        
        Case Is = "pic2"
        
        Case Is = "pic3"
        
        Case Is = "pic4"
       
        Case Is = "X"
        
        Unload Me
        End
        
        
        End Select
        
        
        
    End Sub
    Visual Basic 6 SP4 on win98se

    QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width