Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Back Room
  4. VB6 Button Color

VB6 Button Color

Scheduled Pinned Locked Moved The Back Room
tutorialquestion
23 Posts 13 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Jaison V

    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

    H Offline
    H Offline
    hammerstein05
    wrote on last edited by
    #2

    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

    J 1 Reply Last reply
    0
    • H hammerstein05

      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

      J Offline
      J Offline
      Jaison V
      wrote on last edited by
      #3

      Someone in the Lounge said that you guyz can be more helpful since there are few guyz at the vb forum

      D 0 C 3 Replies Last reply
      0
      • J Jaison V

        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

        S Offline
        S Offline
        soap brain
        wrote on last edited by
        #4

        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?

        I 1 Reply Last reply
        0
        • J Jaison V

          Someone in the Lounge said that you guyz can be more helpful since there are few guyz at the vb forum

          D Offline
          D Offline
          Distind
          wrote on last edited by
          #5

          Someone in the lounge has an interesting definition of helpful.

          D 1 Reply Last reply
          0
          • J Jaison V

            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

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #6

            Crayons.

            L u n a t i c F r i n g e

            J 1 Reply Last reply
            0
            • S soap brain

              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?

              I Offline
              I Offline
              Ian Shlasko
              wrote on last edited by
              #7

              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)

              S C 2 Replies Last reply
              0
              • I Ian Shlasko

                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)

                S Offline
                S Offline
                soap brain
                wrote on last edited by
                #8

                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.

                I 1 Reply Last reply
                0
                • S soap brain

                  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.

                  I Offline
                  I Offline
                  Ian Shlasko
                  wrote on last edited by
                  #9

                  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)

                  S 1 Reply Last reply
                  0
                  • I Ian Shlasko

                    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)

                    S Offline
                    S Offline
                    soap brain
                    wrote on last edited by
                    #10

                    The Heisenberg cannons? Gee, I don't even know where the blessed things are.

                    I 1 Reply Last reply
                    0
                    • I Ian Shlasko

                      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)

                      C Offline
                      C Offline
                      Corporal Agarn
                      wrote on last edited by
                      #11

                      Does he know the hand shake?

                      I 1 Reply Last reply
                      0
                      • S soap brain

                        The Heisenberg cannons? Gee, I don't even know where the blessed things are.

                        I Offline
                        I Offline
                        Ian Shlasko
                        wrote on last edited by
                        #12

                        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)

                        S R 2 Replies Last reply
                        0
                        • C Corporal Agarn

                          Does he know the hand shake?

                          I Offline
                          I Offline
                          Ian Shlasko
                          wrote on last edited by
                          #13

                          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)

                          1 Reply Last reply
                          0
                          • L Lost User

                            Crayons.

                            L u n a t i c F r i n g e

                            J Offline
                            J Offline
                            josda1000
                            wrote on last edited by
                            #14

                            I don't know, I've always been a great fan of colored pencils.

                            L 1 Reply Last reply
                            0
                            • D Distind

                              Someone in the lounge has an interesting definition of helpful.

                              D Offline
                              D Offline
                              Dalek Dave
                              wrote on last edited by
                              #15

                              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

                              1 Reply Last reply
                              0
                              • I Ian Shlasko

                                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)

                                S Offline
                                S Offline
                                soap brain
                                wrote on last edited by
                                #16

                                Unless they're in a box, in which they'll probably do both.

                                1 Reply Last reply
                                0
                                • I Ian Shlasko

                                  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)

                                  R Offline
                                  R Offline
                                  Rod Kemp
                                  wrote on last edited by
                                  #17

                                  Just fit them with Heisenberg compensators and they work fine.

                                  1 Reply Last reply
                                  0
                                  • J Jaison V

                                    Someone in the Lounge said that you guyz can be more helpful since there are few guyz at the vb forum

                                    0 Offline
                                    0 Offline
                                    0x3c0
                                    wrote on last edited by
                                    #18

                                    I said that given the common response to a VB question, you would probably get a similar attitude in the Back Room. It was a joke; I'm sorry if it misled you.

                                    OSDev :)

                                    1 Reply Last reply
                                    0
                                    • J Jaison V

                                      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

                                      R Offline
                                      R Offline
                                      Ray Cassick
                                      wrote on last edited by
                                      #19

                                      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.


                                      LinkedIn[^] | Blog[^] | Twitter[^]

                                      1 Reply Last reply
                                      0
                                      • J josda1000

                                        I don't know, I've always been a great fan of colored pencils.

                                        L Offline
                                        L Offline
                                        Lost User
                                        wrote on last edited by
                                        #20

                                        Yeah, but we're talking VB here. Think thick-fingered 4-year-olds. ;)

                                        L u n a t i c F r i n g e

                                        J 1 Reply Last reply
                                        0
                                        • L Lost User

                                          Yeah, but we're talking VB here. Think thick-fingered 4-year-olds. ;)

                                          L u n a t i c F r i n g e

                                          J Offline
                                          J Offline
                                          josda1000
                                          wrote on last edited by
                                          #21

                                          ahhh... then PAINT! lol nah... that would be confused with MS Paint, and we all know how much suffering goes on when using something as dumb as that... so maybe crayons, but the big kind of crayons...

                                          L 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups