Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Still on my search for controls

Status
Not open for further replies.

netangel

Programmer
Feb 7, 2002
124
PT
I know this can be done, but I can't figer out how.

How can I build a web control that uses more than html components on it? If you look at .NET components, you can find several components that have their only style, not depending on the html controls. For instance, the RTF control shows a sort of textarea, where you can have multiple colors, fonts and font sizes. This is not a html textarea. Besides, it exposes it's properties and events both to client script and server script. How can I do something like it?
NetAngel
 
er...what are you trying to do exactly?

Do you mean how can you use windows controls within a web browser?

Or how to create really kewl web controls like the Rich Text Box?

D
 
No, I know I can't use windows controls on the web.

I want to build my own web controls, but I don't want them to be simply composed controls. I want them to have diferent aspect.

I'd also like to be able to use old OCX.

I have old OCX controls that have graphical aspect (ie a sort of visio that allows to design house plants or furniture). I can't use them in aspx. I can use it if I control it only with client script. It works perfectly. I just can't accept the fact that the only thing missing is the recognition on the server script.
NetAngel
 
Oh, well actually you might be interested to know that you CAN use Windows controls on a web page. In fact, I'm researching how to actually show a win-form in a web page (similar to an applet). That might be the functionality that you're looking for

Note though, that the trick will only work if the client has the framework installed on their machine.

D
 
Sounds like you're looking for how to build a custom web control. Here's my offering at a custom datagrid. I start the class by inheriting the datagrid, and I then extend its functionality by exposing a few extra properties and some extra implementation underneath. It's simplistic, but should turn you on to what's possible.

paul

faq855-2026
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top