CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: Command Buttons

  1. #1
    Guest

    Command Buttons

    I wish to make a commond button to act as a switch. When it is pressed it stays in and displays a different caption.
    i.e normally displays: - ON, press it once the button stays depressed and displays: OFF, press it again it returns to normal display: ON.

    Thanks James





  2. #2
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: Command Buttons

    Check out the option button, i believe that if you change it's style, you have what you want.

    Crazy D @ Work :-)

  3. #3
    Guest

    Re: Command Buttons

    This does not seem to work you need two buttons then that interact with each other. I only want one button that has two states.


  4. #4
    Join Date
    Oct 1999
    Posts
    191

    Re: Command Buttons

    You definitely can do it! You have to use other button control within VB (try to find it) I forgot

    please also try my website

    http://homepages.msn.com/LibraryLawn/rayxu/

    lots of code, tips, links, and more!



  5. #5
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: Command Buttons

    and if everything else fails, drop a picture box on the form, draw 4 lines on it, set the right colours (I believe it's left and top is vb3DHighlight, the others vb3dDarkShadow, and if ther user clicks on the picturebox, switch those colours. Uhmm.. something like that.. I'm sleepie *S* I've use it pretty often that way and it works fine....

    Crazy D @ Work :-)

  6. #6
    Guest

    Re: Command Buttons

    Hi

    I gone through ur problem and this is the solution i can suggest.
    In Sheredan controls there is a control called SSRibbon which is having the same features which u wanted. Try this and reply to me to this address. [email protected]

    Good luck

    Phani


  7. #7
    Guest

    Re: Command Buttons

    Sorry what are Sheredan controls ??

    James


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

Featured