G
Guest
Hi
I'm trying to create a composite control to be used on a ToolStrip,
consisting of a ToolStripComboBox and a ToolStripButton. It's going to be a
control used to search for text in a grid control on a WinForm.
I've got it working fine on a single form but now want to reuse this
functionality on other forms. Usually this would be a simple matter of
creating a UserControl, however a ToolStripComboBox cannot be placed on a
UserControl.
I've looked into the ToolStripControlHost however this only accepts a single
control in its constructor.
I need to make sure that I can handle the Enter and Leave events for the
composite control so that I can display / hide text "Type text to find".
What is the best way to create this control? Ideally I'd like to avoid
having to do my own Paint code etc.
thanks
Richard
I'm trying to create a composite control to be used on a ToolStrip,
consisting of a ToolStripComboBox and a ToolStripButton. It's going to be a
control used to search for text in a grid control on a WinForm.
I've got it working fine on a single form but now want to reuse this
functionality on other forms. Usually this would be a simple matter of
creating a UserControl, however a ToolStripComboBox cannot be placed on a
UserControl.
I've looked into the ToolStripControlHost however this only accepts a single
control in its constructor.
I need to make sure that I can handle the Enter and Leave events for the
composite control so that I can display / hide text "Type text to find".
What is the best way to create this control? Ideally I'd like to avoid
having to do my own Paint code etc.
thanks
Richard