How to Set Focus

R

Rob

I have a dynamically created User Control inside of a dynamically created
Flow Layout Panel inside of a Tab control added at design time....

The form where the Tab Control resides is a Singleton Type Form.

How can I set the focus to a text box in the the Singleton form when a user
has clicked on one of the User Controls ?

Can I create a property that allows you to set the focus ?

If so, how ?
 
R

Rob

Yes, I forgot to put the "Instance" in the command...

Form.Instance.TextBox.Focus()

Thanks,
rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top