Setting Focus on TextEdit on Ribbon Control (1 Viewer)

Mario R. Perez

New member
Local time
Today, 08:00
Joined
May 14, 2020
Messages
12
I have a TextEdit in my ribbon control (a search box) that I want focused when the software starts. How can I accomplish that? The control itself doesn't seem to have a Focus() method.

I would like to be able to use a barcode scanner, read the ticket number, show the msgbox, return to the TextEdit ,clear and have focus.
thanks for advance
 

Attachments

  • Screenshot 2023-07-17 224143.png
    Screenshot 2023-07-17 224143.png
    34.7 KB · Views: 58
  • Screenshot 2023-07-17 224404.png
    Screenshot 2023-07-17 224404.png
    27.8 KB · Views: 59

MarkK

bit cruncher
Local time
Today, 05:00
Joined
Mar 17, 2004
Messages
8,181
If you look at this post, you can handle a barcode scan internally in your code, without needing to read the scan into a textbox, either on the ribbon or on a form. I think that will be a better solution, and an easier solution than trying to use the ribbon as a responsive UI element.
 

Users who are viewing this thread

Top Bottom