ToolstripTextBox customisation
I would like to develop a custom Toolstrip control. The control would be like a ToolStrip but with the following features :
- The textbox would be proceeded by a label开发者_如何学运维
- The textbox would have two buttons after it.
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.
精彩评论