树节点选择后如何将焦点设置到另一个表单? [英] How to set Focus to another Form after Tree Node Select?

查看:129
本文介绍了树节点选择后如何将焦点设置到另一个表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

用鼠标选择一个TreeNode之后,我想在右侧面板中将InputFocus设置为另一个窗体.我在TreeView_AfterSelect事件中调用这种形式的Activate方法.但是InputFocus仍保留在TreeView窗体中.我该怎么办?

after Selecting a TreeNode with the Mouse i want to set InputFocus to the other Form in the right Panel. I call the Activate Method of this form in the TreeView_AfterSelect Event. But InputFocus remains at the TreeView Form. How can i do it?

谢谢
Markus

Thank you,
Markus

推荐答案

这个解决了吗?我有完全一样的问题.我尝试在Load和Activate事件中设置Focus()和Select(),以及我能想到的所有内容.

取决于所选的节点(左侧)我将其他表单加载到面板上.有任何想法吗?

谢谢!
Was this ever solved? I'm having the exact same issue. I've tried setting Focus() and Select() in the Load and Activate events, and just everything I can think of.

Depending on the node selected (on the left) I load a different form onto a Panel.  Any ideas?

Thanks!


这篇关于树节点选择后如何将焦点设置到另一个表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆