Results 1 to 8 of 8

Thread: tool bar

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    13
    I have a VB 6.0 app that I have created a toolbar in. I have been using command buttons instead of a toolbar. I need to disable one of the buttons a times. I have been Form1.Command3.Enabled = False
    But now that I have changed to the toolbar I do not know how to do this. I am new to VB so please be as specific as possible.

    Thanks Alot,

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Try:
    Code:
    Toolbar1.Buttons(Index).Enabled = False
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Fanatic Member spud's Avatar
    Join Date
    Aug 2000
    Location
    Munster (Germany)
    Posts
    542
    Try this,

    Toolbar1.Buttons.Item(1).Enabled = False

    It works on thfirst button just change the Item number to which ever button you are using.

    Be gental this is my first answer post.

    Well done parksie i was just working it out.

    Spud

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Hehe. I suppose there's more than one way to do the same thing. The more the merrier! (Although I think Perl takes this to extremes )
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    Fanatic Member spud's Avatar
    Join Date
    Aug 2000
    Location
    Munster (Germany)
    Posts
    542

    Wink

    parksie beleve me just getting an answer amazies me its good to know that you can help and get some satisfaction in that you are learning to. I just hope that Paul Warren sees it that way

    Cheers

    Spud

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    I think he does, and it's not that he wants the thanks, it's that it annoys him when you get treated badly by the people you're trying to help. And we're all learning - it would be arrogant to think that we knew everything.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7
    Fanatic Member spud's Avatar
    Join Date
    Aug 2000
    Location
    Munster (Germany)
    Posts
    542

    Smile

    Too True!


    Cheers

    Spud

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Cheers!
    Code:
    |----|  *gulp*   |    |
    \_  _/    ==>    \_  _/
      ||               ||
    ------           ------
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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