numpad issue?
I am having an issue using the numpad, and hope someone could point me in the right direction. To adjust a num data I open the numpad and link the Target to a textbox, I am then able to type a number into the pad and hit my "ok" button. My code then writes the data to the controller and seems to work fine.
<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
The problem is every time I open the numpad after that. The cursor is usually moved over in the textbox, and I am not able to type anything until after I touch that textbox. I think I am overlooking something simple, but I have been struggling with this for a few days now. Any help would be greatly appreciated.
Thanks,
Toby
Comments
-
Have you tried TextBox.Focus = True when you display the NumPad?Russell Drown0
-
Thanks for the quick response, Yes, I tried that, it is currently the last line in my routine, I'll paste the code below:
this.tNumPadText.Text = "";
tNumPadText.BackColor = Color.White;
tNumPadText.ForeColor = Color.Black;
this.numPad1.Target = this.tNumPadText;
this.tNumPadText.CaretVisible = true;
this.tNumPadText.Focus();0 -
try adding:
this.tNumPadText.SelectAll();
and
this.tNumPadText.SelectionVisible = True;
before CaretVisible = true
Russell Drown0 -
That fixed it! Works great now! Thank you for your help.0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 314 IRC5
- 60 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 794 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings