• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

What is the active control?

I need to know what is the active control? Is there some way to know this?
 Jose Hernandez




0
al361345
Asked:
al361345
  • 2
1 Solution
 
al361345Author Commented:
Edited text of question
0
 
Éric MoreauSenior .Net ConsultantCommented:
Look at Screen.ActiveControl.
0
 
traygreenCommented:
If you need to find the control at runtime...
Select case ActiveControl.Name
  case "text1"
    call text1_gotfocus(ActiveControl.Index)
    ' or whatever you want to happen
end select
0
 
al361345Author Commented:
Thanks you emoreau and traygreen.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now