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

TreeView: Capturing Enter

P: n/a
Hello Group,

I was having the same issue as described here:
http://groups.google.com/group/comp....6da68840ec0ae9
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).

-Krissco
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.