VB6 Button Color
-
I have 5 buttons. clicking them once changes that button's color to, say orange. And when another button is clicked that will become orange and the previous will reset to original color So i want to toggle their color's depending on which one is clicked. I want code to be efficient. No repeating codes. Any ideas? Just tell me some ideas how to go about implementing it. my idea: send all button click events to a change color function. but we need to know which button has been clicked Any other ideas welcom
-
I have 5 buttons. clicking them once changes that button's color to, say orange. And when another button is clicked that will become orange and the previous will reset to original color So i want to toggle their color's depending on which one is clicked. I want code to be efficient. No repeating codes. Any ideas? Just tell me some ideas how to go about implementing it. my idea: send all button click events to a change color function. but we need to know which button has been clicked Any other ideas welcom
This isn't the place to put programming questions. Take a look at the other boards, namely http://www.codeproject.com/Forums/1646/Visual-Basic.aspx[^] This one
-
This isn't the place to put programming questions. Take a look at the other boards, namely http://www.codeproject.com/Forums/1646/Visual-Basic.aspx[^] This one
-
I have 5 buttons. clicking them once changes that button's color to, say orange. And when another button is clicked that will become orange and the previous will reset to original color So i want to toggle their color's depending on which one is clicked. I want code to be efficient. No repeating codes. Any ideas? Just tell me some ideas how to go about implementing it. my idea: send all button click events to a change color function. but we need to know which button has been clicked Any other ideas welcom
Hmm, for a button colour change algorithm you'll require extensive use of both the Dirac equation and the Riemann-Zeta function; also, what's your background like in signal processing and vector calculus?
-
Someone in the Lounge said that you guyz can be more helpful since there are few guyz at the vb forum
-
I have 5 buttons. clicking them once changes that button's color to, say orange. And when another button is clicked that will become orange and the previous will reset to original color So i want to toggle their color's depending on which one is clicked. I want code to be efficient. No repeating codes. Any ideas? Just tell me some ideas how to go about implementing it. my idea: send all button click events to a change color function. but we need to know which button has been clicked Any other ideas welcom
-
Hmm, for a button colour change algorithm you'll require extensive use of both the Dirac equation and the Riemann-Zeta function; also, what's your background like in signal processing and vector calculus?
Shhh! Don't tell him about the Secret Algorithms (tm)! He's not ready for such power!
Proud to have finally moved to the A-Ark. Which one are you in? Author of Guardians of Xen (Sci-Fi/Fantasy novel)
-
Shhh! Don't tell him about the Secret Algorithms (tm)! He's not ready for such power!
Proud to have finally moved to the A-Ark. Which one are you in? Author of Guardians of Xen (Sci-Fi/Fantasy novel)
Oh, come on, he could easily achieve the same thing by finding non-pathological solutions to Schrödinger's equation or by proving the Hodge conjecture.
-
Oh, come on, he could easily achieve the same thing by finding non-pathological solutions to Schrödinger's equation or by proving the Hodge conjecture.
Fool! Every true geek knows that only ONE of the solutions to Schrodinger's equation is correct. If he manages to prove the other one, he might unmake existence! We must act now to stop this menace, before it's too late! Charge the Heisenberg cannons, and let's hope they work!
Proud to have finally moved to the A-Ark. Which one are you in? Author of Guardians of Xen (Sci-Fi/Fantasy novel)
-
Fool! Every true geek knows that only ONE of the solutions to Schrodinger's equation is correct. If he manages to prove the other one, he might unmake existence! We must act now to stop this menace, before it's too late! Charge the Heisenberg cannons, and let's hope they work!
Proud to have finally moved to the A-Ark. Which one are you in? Author of Guardians of Xen (Sci-Fi/Fantasy novel)
The Heisenberg cannons? Gee, I don't even know where the blessed things are.
-
Shhh! Don't tell him about the Secret Algorithms (tm)! He's not ready for such power!
Proud to have finally moved to the A-Ark. Which one are you in? Author of Guardians of Xen (Sci-Fi/Fantasy novel)
Does he know the hand shake?
-
The Heisenberg cannons? Gee, I don't even know where the blessed things are.
Stop trying to locate them! If you find them, they won't fire!
Proud to have finally moved to the A-Ark. Which one are you in? Author of Guardians of Xen (Sci-Fi/Fantasy novel)
-
Does he know the hand shake?
I doubt it. It's encrypted :)
Proud to have finally moved to the A-Ark. Which one are you in? Author of Guardians of Xen (Sci-Fi/Fantasy novel)
-
They are setting him up deliberately, don't be harsh on him (Yet).
------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
-
Stop trying to locate them! If you find them, they won't fire!
Proud to have finally moved to the A-Ark. Which one are you in? Author of Guardians of Xen (Sci-Fi/Fantasy novel)
Unless they're in a box, in which they'll probably do both.
-
Stop trying to locate them! If you find them, they won't fire!
Proud to have finally moved to the A-Ark. Which one are you in? Author of Guardians of Xen (Sci-Fi/Fantasy novel)
-
Someone in the Lounge said that you guyz can be more helpful since there are few guyz at the vb forum
-
I have 5 buttons. clicking them once changes that button's color to, say orange. And when another button is clicked that will become orange and the previous will reset to original color So i want to toggle their color's depending on which one is clicked. I want code to be efficient. No repeating codes. Any ideas? Just tell me some ideas how to go about implementing it. my idea: send all button click events to a change color function. but we need to know which button has been clicked Any other ideas welcom
Put them in a control array, then add all the buttons to one event handler. In that event handler determine what button was clicked, set its back-color property to what you want and all the others should be set to their normal color. That should get you far enough.