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. General Programming
  3. C#
  4. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved C#
6 Posts 4 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.
  • M Offline
    M Offline
    Mads115
    wrote on last edited by
    #1

    [Message Deleted]

    M S M 3 Replies Last reply
    0
    • M Mads115

      [Message Deleted]

      M Offline
      M Offline
      musefan
      wrote on last edited by
      #2

      So what's your problem?

      Life goes very fast. Tomorrow, today is already yesterday.

      M 1 Reply Last reply
      0
      • M Mads115

        [Message Deleted]

        S Offline
        S Offline
        Spunky Coder
        wrote on last edited by
        #3

        Use Green color. It would be as per the standards.

        "Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)

        1 Reply Last reply
        0
        • M musefan

          So what's your problem?

          Life goes very fast. Tomorrow, today is already yesterday.

          M Offline
          M Offline
          Mads115
          wrote on last edited by
          #4

          hi In windows application I am using a button and serial port in button the control is like a power ON/OFF switch which should change the color if its clicked. ie., when first click is ON the color is red and second click OFF Blue. And it should send a value to serial port for ON "A", For OFF "a". i need the code. for above application

          M 1 Reply Last reply
          0
          • M Mads115

            hi In windows application I am using a button and serial port in button the control is like a power ON/OFF switch which should change the color if its clicked. ie., when first click is ON the color is red and second click OFF Blue. And it should send a value to serial port for ON "A", For OFF "a". i need the code. for above application

            M Offline
            M Offline
            musefan
            wrote on last edited by
            #5

            so have a bool assign to false. then in your button click...

            isOn = !isOn;
            if(isOn)
            {
            button.BackColor = Color.Red;//or something
            //code to send 'A' to port
            }
            else
            {
            button.BackColor = Color.Blue;//or something
            //code to send 'a' to port
            }

            Life goes very fast. Tomorrow, today is already yesterday.

            1 Reply Last reply
            0
            • M Mads115

              [Message Deleted]

              M Offline
              M Offline
              Mycroft Holmes
              wrote on last edited by
              #6

              Mads115 wrote:

              i need the code. for above application

              Start typing - we help, we tutor, we suggest research lines, we don't do your work for you!

              Never underestimate the power of human stupidity RAH

              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