开发者

ToolstripTextBox customisation

开发者 https://www.devze.com 2023-02-22 17:14 出处:网络
I would like to develop a custom Toolstrip control. The control would be like a ToolStrip but with the following features :

I would like to develop a custom Toolstrip control. The control would be like a ToolStrip but with the following features :

I guess to implement this then a user drawn control would be required. Does anyone know of any resources available on the web to get me started on this.


First you should compose your usercontrol with label, textbox and buttons, exposing all the necessary Properties.

Here's a MSDN WalkThrough for UserControls creation

Then, use this answer (or this MSDN example) to create the custom ToolStripItem, just replace the TrackBar with you custom control.

P.S.
If you don't want to create a ToolStripItem, but just a popup showing your custom control, you can use this other example, replacing the ListBox with your control.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号