Skip to main content

Cursor positioning

  • September 1, 2017
  • 2 replies
  • 0 views

 I have a form that has input fields and output fields and I can clear the fields when I  click on my reset key. How can i get the cursor to position to the first input field so the user doesn't have to re-position manually by clicking on it? I have VC 3.0 for VS 2017.


#cursorpositioning
#VisualCOBOL

2 replies

Lanter Werner
  • Participating Frequently
  • September 1, 2017

 I have a form that has input fields and output fields and I can clear the fields when I  click on my reset key. How can i get the cursor to position to the first input field so the user doesn't have to re-position manually by clicking on it? I have VC 3.0 for VS 2017.


#cursorpositioning
#VisualCOBOL
For WPF use:
invoke myTextBox1::Focus()

 I have a form that has input fields and output fields and I can clear the fields when I  click on my reset key. How can i get the cursor to position to the first input field so the user doesn't have to re-position manually by clicking on it? I have VC 3.0 for VS 2017.


#cursorpositioning
#VisualCOBOL
That worked fine! - Thank you