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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with RichTextBox component

Status
Not open for further replies.

beral

Programmer
Jan 7, 2004
12
SE
hello,

I have a web application in which I want to use the functionalities of the RichTextBox component.
I added it to my reference and import the system.windows.form.

I use it like this
myRichTextBox as new RichTextBox()
myRichTextBox.Rtf = "my RTF string"

but I have the followinfg error
System.ComponentModel.Win32Exception: The class already exist

I don't know what's going on.

Any Ideas???
 
Whatever you want to do with the Windows UI won't translate to ASP.NET (changing text color through a RichTextBox, for example, will not work because ASP.NET controls need to know how to register that color as HTML).

What exactly do you want to do?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top