StatusStrip中的UserControl [英] UserControl in StatusStrip

查看:65
本文介绍了StatusStrip中的UserControl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望有人可以帮助我弄清楚如何将用户控件添加到StatusStrip中.除了通过Items Collection Editor允许的默认控件外,似乎没有其他方法可以添加任何控件.

Hoping someone can help me figure out how to add a Usercontrol into StatusStrip. There seems no obvious way in which to add any controls other than the default ones allowed through the Items Collection Editor.

推荐答案

您好,

此处的关键是使用将指导您完成围绕控件生成包装器的过程,从而使您可以进入状态栏.

the key here is to use the ToolStripHost class, which would host your user control. This MSDN's How To article will guide you through the process of generating a wrapper around your control, allowing you to put in on your status strip.

Andrej


这篇关于StatusStrip中的UserControl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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