Screen.ActiveControl

vb6 India
  • 19 years ago

    How do I use Screen.ActiveControl to get the activecontrol in a form?


    dim a as control
    a=Screen.ActiveControl


    throws an error.

  • 19 years ago

    dim a as control
    Set a=Screen.ActiveControl

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.” - Donald Knuth