Results 1 to 2 of 2

Thread: [RESOLVED] which method we use to enable disable buttons of toolbar in c sharp

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    141

    Resolved [RESOLVED] which method we use to enable disable buttons of toolbar in c sharp

    we use this method in vb 6.0
    Toolbar1.Buttons(1).Enabled = true

    which method we use to enable disable button in c sharp
    Last edited by Waseemalisyed; Apr 29th, 2005 at 12:29 AM.

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142

    Re: which method we use to enable disable buttons of toolbar in c sharp

    use the [ ] instead of ( ) , remeber that in .NET the toolbar's index's begin at 0 not 1 , so to disable the second button ...
    VB Code:
    1. toolBar1.Buttons[1].Enabled = [COLOR=Blue]false[/COLOR];
    the first button would be ...
    VB Code:
    1. toolBar1.Buttons[0].Enabled = [COLOR=Blue]false[/COLOR];
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

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