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 for enable disable
    Toolbar1.Buttons(1).Enabled = false

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

    in switch statemnt we write
    switch (index)
    {
    case 4 && RecMode != "":

    }
    system generate error please correct this sentax
    Last edited by Waseemalisyed; May 10th, 2005 at 06:38 AM. Reason: ok

  2. #2
    Junior Member
    Join Date
    Jan 2005
    Location
    Belgium
    Posts
    30

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

    - Enable/disable buttons: it's nearly the same,
    only the buttons collections starts numbering from 0.
    So, using C# syntax:

    Code:
    Toolbar1.Buttons[0].Enabled = false;
    - The switch : that syntax is not accepted. Look at the switch keyword in the MSDN library.
    You will have to use 'if'.

    Code:
    if(index == 4 && RecMode != "")
    {
    
    }

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