0

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.

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
BENBUN Coder
  • 4,801
  • 7
  • 52
  • 89
  • digEmAll - looks interesting, I'll take a look and see if it will work out for me. – BENBUN Coder Apr 05 '11 at 10:26
  • I've turned my comment into an answer :) – digEmAll Apr 05 '11 at 10:41
  • If you would like to make toolstriptextbox stretch over all available distance, here is a good example, helped me a lot http://msdn.microsoft.com/en-us/library/ms404304(v=vs.90).aspx – Roman Oct 31 '13 at 20:53

1 Answers1

2

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.

Community
  • 1
  • 1
digEmAll
  • 56,430
  • 9
  • 115
  • 140