Bold Words In A RichTextBox
Jan 29, 2010How can I make bold a part from a text in a RichTextBox in VB 2008?
View 16 RepliesHow can I make bold a part from a text in a RichTextBox in VB 2008?
View 16 RepliesI have a string that is the body of an email my web app (VB.NET) sends when a new user account is created. The string is created in my code-behind file. How do I make just a couple of the words in the email message bold?
View 1 RepliesWhat I'm trying to do is get the HTML after the "3" and before the "4" not including the "3" and "4" in the HTML in a Webbrowser. How exactly would I go about doing this?
[Code]...
I want to change certain words in line as bold and remaining words as normal case. And I want to display this kind of text in dialog box. I want to achieve it in vb 2008.
View 3 Replieson a timer that ticks every 1ms have it:
if RichTextBox1.Contains "begin" then
change "begin" to "begin".bolded
end if
[Code].....
I'm trying to have a feature in my application where every time the user presses the "-" key the word directly before it becomes bold. This much I've been able to figure out:
[Code?
I have created a page where I can toggle the richtextbox's fontstyle between bold/italic/underline. This works flawlessly. However, when I assign it more than one font style I do not know how to tell which ones it has through code. For instance if I bold something I can simply check richtextbox.SelectionFont.Bold but what about if it is bold and italic?
View 2 RepliesIf I have a RichTextBox and want output like the first line is a font with capital letters and bold, while the next line on the contrary, what should I do?
output like this:
MY NAME IS
Diana
My address is
China
i have a RTB in my application for notes. Ive put it in a panel with a toolstrip and buttons for bold, italic, underline etc.This works fine,
[Code]...
I need to display my text which were read from .xml database as color, italic, bold, etc. in richtextbox, how do i make a code to do that,The reading and displaying is fine, but when certain word like again is read it should display in italic, and whenever a word like over is read it should be display in bold or underline etc.I use vb.net 2003 and .xml for the database.
View 1 RepliesI have a list of words that i need to find in a RIchtextbox, when the word is found, i want to highlight the word.
View 2 RepliesHow to count no of Words in A RichTextBox?
View 9 Replieshow to find the words in richtextbox that has : (colon)?
View 2 RepliesI am doing the following to change the color of a word in a RichTextbox, but it sorta has a bug in it, which I'm not sure what to do with it.
vb.net Private Sub ScriptEditor_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ScriptEditor.KeyUp
[Code]...
How should I perform autocorrect words and spell check in richtextbox?
View 3 RepliesI have working this code for replace all words in a richtextbox for the synonym from a xml . But Now I am trying to make a spintax like
{home|house|apartment} son if the word called "home" is in the richtextbox the program replace for {synonym|synonym2|synonym3}
Something like this RichTextBox1.SelectedText = "{" + synonym|synonym2|synonym3 + "}"
[code]...
when i copy code from vb.net code window, and paste it in my richtextbox, the color synthax is as it displays in my vb.net code window.. this i want to keep when finding and replacing words. i have the following code to find and replace,
RichTextBox1.Text = RichTextBox1.Text.Replace("Private Sub", "<font color=blue>Private Sub</font>")
but the color syntax of the richtextbox code is lost, looks like a textbox's text.. how do i replace the words and keep the synthax coloring?
I found that code and how could i change it so it will also make correction(including upper case):[code]
View 1 RepliesPrivate Sub RichTextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged
RichTextBox1.SelectionLength = 0
Dim words As New List(Of String)
words.Add("Test")
[code]....
I have a WPF RichTextBox which contain in its FlowDocument both text and images. I need to iterate through the text's words (those which builds the text which the user see on the screen) and change their content and formatting. For instance, change the word "room" to the word "home", applying to the last a red color.
I need to change words whether they are formatted or unformatted.For instance, if a word is in Italic, colored, or just regular black text, it makes no difference for me.Each word will be replaced with one which have about identical length, so I don't want that this operation will effect the general page layout. All images and other objects should remain at their positions.It is preferred that the process of this operation will not be visible to the user. Only its result should be visible (i.e, no visible selections of text).If this operation can be done either directly on the FlowDocumet or with properties/methods of the RichTextBox, the simple one is preferred (but exmaples for both will be ideal).
I have one more problem with MonthControl.And when I bold some dates the program doesn't show bold dates on month calendar.When I move on next or previous month and get back to currently month the program normal displays bold dates. What's the problem?
View 22 RepliesWhen i put some thing in a html editor example <html>then it will highlight how to make a word like INNER JOIN (for sql) make it in a diffrent color ?
View 3 RepliesI've got 2 RTB one is for input of text and one is output.The output one needs to read the words from the input and display it alphabetically and with their line numbers.I have partly done it and it currently reads it but here is my problem When the words are outputted let say for example there are 2 words the same on the same line e.g the word 'you' appears twice on line one,at the moment its coming up like this
[Code]...
other than GML (Yoyogames.com Game Maker Language), I am new to the coding world. The only "major" project I have completed using VB is a computer calculator that exactly mimics the capabilities of Windows 7's calculator. Yesterday, I began a Chatbot program for my girlfriend. Lol. I have used the instr() function to answer most of the questions or answers which are typed into the textbox1. I find this extremely troublesome because when using the instr() function you cannot say instr(textbox1.
Public Class Form1
Dim fos As String = "Foster: "
Dim ash As String = "Ashley: "
[code].....
I have a richtextbox with a large file inside....I want to be able to search for "Fornication" within the text (KJV Bible) and have every instance of that word to pop up into another richtextbox along with the scripture it is in.
View 1 RepliesI'm currently having a problem dragging and dropping my label1.text to a richtextboxt which isn't created on design time...well im currently found a solution but i think it is only for a temporary solution because i use a drag and drop i drag it to a textbox then it willl transfer the data to the richtextbox....through the use of the textbox... here is the code ive come through..[code]...
View 2 RepliesI am creating a text editor like notepad. Well its an advance type because it is a tabbed notepad type. It saves html files.
I only created tabcontrol on the design time named TabControl1. the tabpages and the richtextbox are created on the form load and when adding tabs. [code]...
I have 2 forms. The 1 is named frmMain. inside of it is a Richtextbox named RTB.
The other form is named frmInsert. Inside of it is a Richtextbox named rtbtext.[code]..
how can i give code in bold button just for bold the text in textbox1how can i give code in bold button just for bold the text in textbox1
View 1 RepliesI want when mouse move items of combox when it is dropdown. mouse move item and this font of item is bold..how can i do that ?
View 10 Replies