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. Transferring Focus to Multiple Buttons

Transferring Focus to Multiple Buttons

Scheduled Pinned Locked Moved C#
helpquestion
2 Posts 2 Posters 1 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.
  • G Offline
    G Offline
    gamer1127
    wrote on last edited by
    #1

    Hi. We're having a little problem in allowing the user click/press any button from a group of buttons inside a panel. What we want is after clicking/pressing one button that is not one of the group of buttons, the user will be allowed to click/press any of the buttons in the panel. All the buttons inside the panel represent the alphabet that's why we want to do that. The button that will be clicked before doing that is a start button. So can anyone help us?

    R 1 Reply Last reply
    0
    • G gamer1127

      Hi. We're having a little problem in allowing the user click/press any button from a group of buttons inside a panel. What we want is after clicking/pressing one button that is not one of the group of buttons, the user will be allowed to click/press any of the buttons in the panel. All the buttons inside the panel represent the alphabet that's why we want to do that. The button that will be clicked before doing that is a start button. So can anyone help us?

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

      So you start off with the buttons enabled property as False then when the start button is clicked you go through each control in Panel.Controls and if it is a button and not the start button set the enabled property to True. You may want to put the alphabet buttons in a groupbox to further segregate them from any other controls, in this case you go through the GroupBox.Controls collection instead.

      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