By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,065 Members | 1,560 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,065 IT Pros & Developers. It's quick & easy.

Form.ActiveControl method does not work for control created at run-time ???

P: n/a
I am creating a ListView control at run-time and show it on my form.
The control appears on the screen and responds to keyboard input.
However, the form's ActiveControl method returns a reference to itself
when it should return a reference to my ListView control, wheareas in
other cases it works correctly. Any ideas why this happens and how I
can correct it?

thanks
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
James,

I think you should provide some code with it, I think it is not only for me
very cryptic what you are writing.?

Cor
I am creating a ListView control at run-time and show it on my form.
The control appears on the screen and responds to keyboard input.
However, the form's ActiveControl method returns a reference to itself
when it should return a reference to my ListView control, wheareas in
other cases it works correctly. Any ideas why this happens and how I
can correct it?

thanks

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.