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. help...how to highlight buttons in c#?

help...how to highlight buttons in c#?

Scheduled Pinned Locked Moved C#
tutorialcsharphelpquestion
4 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
    Missy Glory
    wrote on last edited by
    #1

    we have a project got some button,if we run the step by step demo function,our teacher ask us after click the first button,the second button which should click will be highlight.So user can follow the highlight button to run the project.Do not know how to highlight the button,any ppl can give a idea?thanks a lot!waiting for your reply!:)

    V M L 3 Replies Last reply
    0
    • M Missy Glory

      we have a project got some button,if we run the step by step demo function,our teacher ask us after click the first button,the second button which should click will be highlight.So user can follow the highlight button to run the project.Do not know how to highlight the button,any ppl can give a idea?thanks a lot!waiting for your reply!:)

      V Offline
      V Offline
      Vikram A Punathambekar
      wrote on last edited by
      #2

      Not sure what you mean by highlight, but you can change the background color to make it more conspicuous. Something like this in button1's Click event handler:

      button2.BackColor = Color.AntiqueWhite;

      Cheers, Vıkram.


      Déjà moo - The feeling that you've seen this bull before. Join the CP group at NationStates. Password: byalmightybob

      1 Reply Last reply
      0
      • M Missy Glory

        we have a project got some button,if we run the step by step demo function,our teacher ask us after click the first button,the second button which should click will be highlight.So user can follow the highlight button to run the project.Do not know how to highlight the button,any ppl can give a idea?thanks a lot!waiting for your reply!:)

        M Offline
        M Offline
        marky777
        wrote on last edited by
        #3

        You can make the button BOLD and/or the font size as required: cmdTest.Font.Bold = true; cmdTest.Font.Size = 18; If that is what you require...

        1 Reply Last reply
        0
        • M Missy Glory

          we have a project got some button,if we run the step by step demo function,our teacher ask us after click the first button,the second button which should click will be highlight.So user can follow the highlight button to run the project.Do not know how to highlight the button,any ppl can give a idea?thanks a lot!waiting for your reply!:)

          L Offline
          L Offline
          Leyu
          wrote on last edited by
          #4

          I guess what you want to do is nextButton.Focus(); //this will highlight(input focus) the nextButton

          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