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. Visual Basic
  4. datagrid

datagrid

Scheduled Pinned Locked Moved Visual Basic
helpquestion
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
    taherjaorawala
    wrote on last edited by
    #1

    dear friends when the cursor enter the datagrid on the press of tab the cursor moves from one cell to another but i want the cursor to move from one control to another for eg I have 3 control in the form 1st textbox 2nd datagrid n 3rd button. On the load of the form the cursor focus will be on textbox on the press of tab the cursor will move to datagrid on tab again the cursor will move to the next cell in the datagrid but i want the cursor to focus on the button. How can i make it possible please help at your ealiest. Thanks

    W 1 Reply Last reply
    0
    • T taherjaorawala

      dear friends when the cursor enter the datagrid on the press of tab the cursor moves from one cell to another but i want the cursor to move from one control to another for eg I have 3 control in the form 1st textbox 2nd datagrid n 3rd button. On the load of the form the cursor focus will be on textbox on the press of tab the cursor will move to datagrid on tab again the cursor will move to the next cell in the datagrid but i want the cursor to focus on the button. How can i make it possible please help at your ealiest. Thanks

      W Offline
      W Offline
      Werries
      wrote on last edited by
      #2

      Protected Overrides Function ProcessCmdKey(ByRef msg As Message, ByVal keyData As Keys) As Boolean End Function This sub capture key messages before the form get's it. You can handle the key message manually from here and set the focus to the next control is keyData = Keys.Tab Try this, it's how I manage to control where the focus is on my application and it works fine! A programmer's life is good... or is it?? Ek dink nie so nie!

      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