Custom Server Controls

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to build a control that allows you to nest another control in
a base textbox control so that you can say, nest a toolbar in a textbox? If
so what base class do I derive from to allow the textbox control to accept an
toolbar control? Do I have to override the TextBox render event? etc etc...
 
You can use a Composite Server control for this.

Here is a good starting point on MS site:

http://msdn.microsoft.com/library/?...ide/html/cpcondevelopingcompositecontrols.asp

bill

I am Sam said:
Is it possible to build a control that allows you to nest another control in
a base textbox control so that you can say, nest a toolbar in a textbox? If
so what base class do I derive from to allow the textbox control to accept an
toolbar control? Do I have to override the TextBox render event? etc
etc...
 
Yes and no. Yes, it is possible to design anything you desire. No, it is not
possible to insert everything into a browser without altering its
funcationality.

What do I mean? Ultimately, all controls have to be rendered as HTML to fit
the browser model. If you step outside of this model, you will have to embed
a control (normal methods are ActiveX and Java). Beyond this, you are better
to use the .NET deploy mechanism to send a client (Windows Forms) to the user.


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
I think I'll author a new composite control based on the textbox control and
custom toolbar control positioned outside the textbox (Sort of like a label)
and have the toolbar manipulate the text string accordingly as opposed to a
nested toolbar within the textbox.
 
That is the approach to take.

bill

I am Sam said:
I think I'll author a new composite control based on the textbox control and
custom toolbar control positioned outside the textbox (Sort of like a label)
and have the toolbar manipulate the text string accordingly as opposed to a
nested toolbar within the textbox.
 
Back
Top