473,387 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

richtextbox not available in toolbox

I am trying to use the .net version of the richtextbox control on a web page
and when I use the "system.windows.forms" namespace the richtextbox does
show up in the toolbox but it is greyed out. I would like to know why this
is and what I need to do to allow this object to be useable to at least
select. I know there are other issues about using this control on a web
page but I believe I need to get past this unexpected problem first. Any
help would be appreciated.

Thanks,
NWOP.
Nov 18 '05 #1
3 2106
Windows forms controls can't be just dropped onto an ASP.Net form. You need
to embed it with an object tag.

<object id="test" classid="bin/yourdll.dll#Namespace.ControlName"
height="100" width="100"></object>
Remember this will only work if IE 6 and .Net are installed on the client so
this is a very limited solution.
+++ RIck ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web
"New World Order Pigs" <lt*******@md-it.com.no.spam> wrote in message
news:el**************@tk2msftngp13.phx.gbl...
I am trying to use the .net version of the richtextbox control on a web page and when I use the "system.windows.forms" namespace the richtextbox does
show up in the toolbox but it is greyed out. I would like to know why this is and what I need to do to allow this object to be useable to at least
select. I know there are other issues about using this control on a web
page but I believe I need to get past this unexpected problem first. Any
help would be appreciated.

Thanks,
NWOP.

Nov 18 '05 #2
I'm assuming this has nothing to do with making the control available in the
toolbox but is literally putting the control on the form? Is that correct?

Thanks Rick,
NWOP.

"Rick Strahl [MVP]" <ri********@hotmail.com> wrote in message
news:OY**************@TK2MSFTNGP11.phx.gbl...
Windows forms controls can't be just dropped onto an ASP.Net form. You need to embed it with an object tag.

<object id="test" classid="bin/yourdll.dll#Namespace.ControlName"
height="100" width="100"></object>
Remember this will only work if IE 6 and .Net are installed on the client so this is a very limited solution.
+++ RIck ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web
"New World Order Pigs" <lt*******@md-it.com.no.spam> wrote in message
news:el**************@tk2msftngp13.phx.gbl...
I am trying to use the .net version of the richtextbox control on a web

page
and when I use the "system.windows.forms" namespace the richtextbox does
show up in the toolbox but it is greyed out. I would like to know why

this
is and what I need to do to allow this object to be useable to at least
select. I know there are other issues about using this control on a web
page but I believe I need to get past this unexpected problem first. Any help would be appreciated.

Thanks,
NWOP.


Nov 18 '05 #3
Thanks for the response Rick. Another question I have is how do I
initialize the control and then access it to control it? Are there any
examples of this that you know of?

Thanks again,
NWOP.

"Rick Strahl [MVP]" <ri********@hotmail.com> wrote in message
news:OY**************@TK2MSFTNGP11.phx.gbl...
Windows forms controls can't be just dropped onto an ASP.Net form. You need to embed it with an object tag.

<object id="test" classid="bin/yourdll.dll#Namespace.ControlName"
height="100" width="100"></object>
Remember this will only work if IE 6 and .Net are installed on the client so this is a very limited solution.
+++ RIck ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web
"New World Order Pigs" <lt*******@md-it.com.no.spam> wrote in message
news:el**************@tk2msftngp13.phx.gbl...
I am trying to use the .net version of the richtextbox control on a web

page
and when I use the "system.windows.forms" namespace the richtextbox does
show up in the toolbox but it is greyed out. I would like to know why

this
is and what I need to do to allow this object to be useable to at least
select. I know there are other issues about using this control on a web
page but I believe I need to get past this unexpected problem first. Any help would be appreciated.

Thanks,
NWOP.


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Anne | last post by:
Hi All, I need to use RichTextBox 's LostFocus event, but on my .net toolbox, the RichTextBox control under Windows Forms and HTML tabs are grayed out. How can I drag it to my web form then? ...
3
by: JMG | last post by:
Hello, How could I send a mail in html format with the RichTextBox control ? I tried this but it doesn't work: MailMessage objMail = new MailMessage (); objMail.Body = myRichTextBox.Rtf;...
5
by: Jeti [work] | last post by:
I have RichTextBox on my form... When I press the 'OK' button, form must save contents of the RichTextBox on the disk... It wouldnt be a problem usually, but it is because i need to save it as...
2
by: Neo Chou | last post by:
Greetings! I'm trying to make my ASPX page able to process WORD format document. I learned that RichTextBox might help me, but I can't use it either by adding it to my Web Control list or by...
14
by: Graham Blandford | last post by:
Hi there, A quickie I think... If I create a new class that inherits the values of a windows form component class, can there ever be a visual representation of this in the .Net IDE? E.g. if...
4
by: dw | last post by:
Hello - I added a new web page (.ascx) to my project and for some reason the Web Forms section of the toolbox is totally disabled. The HTML toolbox section is enabled and available. I looked at...
0
by: shivaranjaniadimulam21 | last post by:
Hello, I need to implement an email editor control in my application. The control should allow me to type in text in any format,font etc. This i have managed using the richtextbox control...
2
by: =?Utf-8?B?TWFyayBDb2xsYXJk?= | last post by:
I'm currently writing an application that has a RichTextBox and a toolbar which includes the following toolbar buttons: - Font - Font Size - Bold - Italic - Underline I want the toolbox...
4
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I have a multiline RichTextBox that I use for data logging. I'm concerned about how the AppendText method reacts when over time the maximum number of characters have been added. Do the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.