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

TreeView: Capturing Enter

P: n/a
Hello Group,

I was having the same issue as described here:
I just realized a solution to this issue:

Place a button on the form. Set the "Default" property of the button
to TRUE.
In the buttons "OnClick" event, call the TreeView's "DblClick" event
and set the focus back to the treeview.

Pressing [Enter] anywhere on the form will now trigger the button's
OnClick event (due to the Default status).

Aug 15 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.