Kbase P143630: How do I set the focus to a specific control on a .NET GUI Form?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/25/2009 |
|
Status: Unverified
GOAL:
How do I set the focus to a specific control on a .NET GUI Form?
GOAL:
What is the .NET GUI equivalent to the ABL APPLY 'ENTRY' TO SomeWidget statement?
GOAL:
How can I tell what control currently has focus on a .NET GUI Form?
FACT(s) (Environment):
Windows
OpenEdge 10.2x
FIX:
The way to set the focus on a .NET GUI form is to use the windows ActiveControl property. The following sample code shows how to set the property:
THIS-OBJECT:ActiveControl = SomeUIControl.
Where SomeUIControl equates to the name of some control in the windows user interface.
You can also determine which control currently has focus by referencing the ActiveControl property.