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.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 15 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 363 IRC5
- 80 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 853 RAPID Programming
- 30 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 110 Collaborative Robots
- 5 Job listings
