Thursday, March 22, 2012

TextBox

Hi i was using VB express 2005 express edition and decided to swop to web developer. Previously in vb express there is a rich textbox, does web developer have something similar to that? my main concern is that i want to be able to assign one colour to each word.

Thanks!

vb express code :

If character = "L" Then
RichTextBox1.SelectionColor = Color.Purple
RichTextBox1.AppendText(character2)
RichTextBox2.SelectionColor = Color.Purple
RichTextBox2.AppendText(character2)
Weight1.Append(character)
Weight3.Append(character)


ElseIf character = "E" Then
RichTextBox1.SelectionColor = Color.Red

RichTextBox1.AppendText(character2)
RichTextBox2.SelectionColor = Color.Red

RichTextBox2.AppendText(character2)
Weight1.Append(character)
Weight3.Append(character)

huh? There is no native Rich Text Editor in VB Express... you must have downloaded and installed an addin.

I like tinyMCE and FreeTextBox, both work well. fckEditor also is out there as well as many others.


hmm i think u misunderstand me. There is rich textbox in visual basic express edition 2005 but there is no rich textbox in visual web developer, So im asking whether in visual web developer there is something that functions like rich text box whereby u can assign one colour to one characters?


Oh... WINDOWS Forms...

Then no, there is no native Web Forms control for Rich Text......You have to use a 3rd party one.


hmm any 3rd party one to recommend?


As I mentioned...

Curt_C:

I like tinyMCE and FreeTextBox, both work well. fckEditor also is out there as well as many others.


Lets say i use freetextbox, am i allow to assign one colour to one character using code in vb? is the code same as this?

If character = "L" Then
RichTextBox1.SelectionColor = Color.Purple
RichTextBox1.AppendText(character2)
RichTextBox2.SelectionColor = Color.Purple
RichTextBox2.AppendText(character2)
Weight1.Append(character)
Weight3.Append(character)


ElseIf character = "E" Then
RichTextBox1.SelectionColor = Color.Red

RichTextBox1.AppendText(character2)
RichTextBox2.SelectionColor = Color.Red

And where is the link to get it?

Thanks!


I have download the file, how do i add it to the web developer?


I personally like FCKeditor also -www.fckeditor.net/


Hmm do u know the visual basic code to assign colours to the characters in fckeditor?


How do i add the fck editor to my project?


dr3amxstar:

Lets say i use freetextbox, am i allow to assign one colour to one character using code in vb? is the code same as this?

If character = "L" Then
RichTextBox1.SelectionColor = Color.Purple
RichTextBox1.AppendText(character2)
RichTextBox2.SelectionColor = Color.Purple
RichTextBox2.AppendText(character2)
Weight1.Append(character)
Weight3.Append(character)


ElseIf character = "E" Then
RichTextBox1.SelectionColor = Color.Red

RichTextBox1.AppendText(character2)
RichTextBox2.SelectionColor = Color.Red

None of the Editors are designed for programatic interaction like that. In order for that to happen with VB you would have to postback everytime a letter was pressed on the keyboard. Otherwise, you can manually parse the html text they generate and manipulate it whatever way you want...after it's posted to the server.

0 comments:

Post a Comment