Hello JSW W.,
You can subclass the NControlHostCommand class and in the constructor should create the desired control and call SetControl(control) method.
Here is an example how can create such a command that hosts a text box control:
public
class NTextBoxCommand : NControlHostCommand{
public NTextBoxCommand() {
NTextBox tb = new NTextBox(); tb.Size =
new Size(PrefferedWidth, PrefferedHeight); SetControl(tb);
}
}
Then you need to create an instance of this class and add it to the toolbars Commands collection.
Regards,
Angel.