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. C# Application Programming

C# Application Programming

Scheduled Pinned Locked Moved C#
questioncsharptutorial
2 Posts 2 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.
  • T Offline
    T Offline
    tibifira
    wrote on last edited by
    #1

    hi there!, how can i change the focus so the input goes just to the panel. for example in my program when i press enter or space one of the buttons on the toolbar works "cose in my program i use left and right keys and then enter!" my input goes to mainform and not to panel wich on mainform is there anyway just to disable input to toolBar. i think its hard to understand my question good luck.

    D 1 Reply Last reply
    0
    • T tibifira

      hi there!, how can i change the focus so the input goes just to the panel. for example in my program when i press enter or space one of the buttons on the toolbar works "cose in my program i use left and right keys and then enter!" my input goes to mainform and not to panel wich on mainform is there anyway just to disable input to toolBar. i think its hard to understand my question good luck.

      D Offline
      D Offline
      dazinith
      wrote on last edited by
      #2

      i couldnt follow most of your question, but maybe this will help.. you should set focus to the control (textbox, etc.) that you want to have the initial focus.. create an OnLoad() handler for your mainform, and after the panel is displayed call:

      this.myPanel.Focus();

      or in your OnLoad() of the panel call

      this.myTextBox.Focus();

      still a newb.. cut me some slack :P -dz

      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