Click to See Complete Forum and Search --> : Command Buttons


October 6th, 1999, 09:53 AM
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

Crazy D @ Work
October 6th, 1999, 10:16 AM
Check out the option button, i believe that if you change it's style, you have what you want.

Crazy D @ Work :-)

October 6th, 1999, 10:46 AM
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.

rayxu
October 6th, 1999, 10:52 AM
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!

Crazy D @ Work
October 7th, 1999, 04:21 AM
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 :-)

October 11th, 1999, 02:41 AM
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. chilakamati@yahoo.com

Good luck

Phani

October 11th, 1999, 09:07 AM
Sorry what are Sheredan controls ??

James