VS 2008 Bold Text In A RichTextBox?

Jun 18, 2012

on a timer that ticks every 1ms have it:

if RichTextBox1.Contains "begin" then
change "begin" to "begin".bolded
end if

[Code].....

View 6 Replies


ADVERTISEMENT

VS 2010 Bold Certain Text In Richtextbox?

Mar 8, 2011

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?

View 4 Replies

Display Text Which Were Read From .xml Database As Color, Italic, Bold, Etc In Richtextbox?

Nov 18, 2010

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 Replies

Bold Words In A RichTextBox

Jan 29, 2010

How can I make bold a part from a text in a RichTextBox in VB 2008?

View 16 Replies

Richtextbox's Fontstyle Between Bold/italic/underline

Jul 2, 2009

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 Replies

VS 2008 - How To Make Just Group Box Caption Text Bold

Jul 14, 2009

How come when I make a group box "caption" text bold it also makes everything in the group box bold? How do I do this from the IDE - change just the font characteristics of the group box itself and not it's contents?

View 6 Replies

C# - Formating First Line Of RichTextBox With Capital Letters And Bold?

Jun 3, 2011

If 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

View 1 Replies

Richtextbox Control: Bold / Italic Formatting Lost On Save?

Aug 11, 2009

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]...

View 14 Replies

Select A Character By Position To Make Bold In A Rich Field Text Box In VB 2008?

Aug 2, 2010

I understand that within a rich field text box you can search for a string and then format that string, but I am looking to change the formating of a certain position in a string regardless of what character is at that position.Can this be done in VB 2008?

View 3 Replies

Make A Group Box's Text Bold But Not The Text Of Controls Contained In It?

Feb 17, 2012

I went and created a tab containing a good amount of controls, most of which are contained within what I'll just call the top-level group box. Now I decide I'd like the text of the top-level group box to be bold, but nothing else. When I set the top-level group box's font to bold, however, all of the controls contained within it become bolded as well, which is what I don't want. I can set each individual control's bold property to false, but it seems like there should be an easier way to do this.

View 2 Replies

VS 2010 - Apply A Bold Style To The Text Of A Text Box?

Mar 20, 2011

How can i apply a bold style to the text of a text box?

View 4 Replies

VS 2008 - How To Get Text By Line From RichTextbox

Jun 20, 2009

I have a richtextbox control. It contains many lines of text (multiline is enabled). My goal is: When user clicks with right-click mouse, I'd like to display all the text of the line where the cursor is. I'm using this method to get the cursor's line:
Dim line As Integer = RichTextBox1.GetLineFromCharIndex(RichTextBox1.SelectionStart)
But how do I get the text of the line? Should I copy the whole text to a string array , and then just print the relevant line item?

View 6 Replies

VS 2008 Finding Text In RichTextBox?

Aug 29, 2009

Is there anyway I could find text in a RichTextBox? I want to put the code in here

[code]...

View 10 Replies

VS 2008 Parsed Text Looks Bad On The RichTextBox?

Apr 3, 2012

When i parse text from a website ( Such as a description of something ) and it has symbols in it such as

Any symbol that get parsed out in the description looks like this on the richtextbox or any textbox I'm using a noob way to eliminate the problem by replacing each gibberish character to his normal font like this

[Code]...

View 2 Replies

[2008] RichTextBox Search Text

Feb 21, 2009

I have a text box called "txtDescription" and listbox called "lstDetails" and a RichTextBox called "rttFullDes.

When the User inputs the search query into the description box(txtDescription) e.g "books" then it returns all the records that contains the word "books" and displays their Id in the listbox(lstDetails). When you click on the IDs it returns the full description in the Description box(rttFullDes)

This all works fine. But i want all the words to be hightlighted. i have got this code which i found.

Dim wordToFind As String = txtDescription.Text
Dim index As Integer = rttFullDes.Text.IndexOf(wordToFind)
While index <> -1

[Code].....

View 16 Replies

[2008] RichTextBox Text Color?

Feb 11, 2009

I searched this topic and set RichTextBox1.SelectionColor = Color.Red after click button1, and set RichTextBox1.SelectionColor = Color.DarkBlue for button 2 click event. But after I clicked either button, the text color was always black as forecolor set.

View 8 Replies

VS 2008 Save The Text Being Entered Within The Richtextbox?

Mar 31, 2011

Is richtextbox can save a text within its control? What control in vb.net that could save the text being entered within its control paticularly, if any? I need somebody that could give me an idea on what control to use to save the text within the control. I'm not trying to save the text anywhere. I want to save it within the control. I don't have to save it with a filename and a path location. Just like this forum, which everytime you post and reply to a thread, you will have to enter your message in a certain workspace and after you submit, it will save within the control so everytime you open your thread you will see the messages. What control do I need to use in vb.net to do that? info especially the codes to save the text string within a certain control?

View 11 Replies

[2008] Text Placement And Scrolling In Richtextbox?

Jan 26, 2009

I'm trying to do two things. I have a Richtextbox which i'm continously adding text to from a standard text box. I want that new text to appear at the beginning of the existing text, not at the end of the existing text.I've got the following code but it's not working. The new text keeps going to the end of the existing text.

Dim newtext As String
newtext = TextBox1.Text
RichTextBox1.AppendText(newtext)

[code]......

View 7 Replies

Bold Only Certain Text In A Textbox?

May 26, 2010

Is it possible to bold only certain text in a textbox? Also the same for coloring and underlining and such?

View 20 Replies

Bold Text Of A Stringbuilder?

Apr 4, 2007

I'm trying to find out an easy way of bolding a string of my stringbuilder...if that is even possible.The stringbuilder eventually passes all the text to richtextbox..I'd like to bold this string

sb.AppendLine("--------------------------------")
and also
sb.AppendLine("Results for " & finalname)

[code].....

View 6 Replies

How To Bold And / Or Italics Text In RTF

Aug 20, 2010

I want to highlight certain words in a doc in a richtextbox and make it bold.

View 11 Replies

VS 2008 - How To Split RichTextBox Text Into Array List

Aug 6, 2010

I have seen and used Text.split with a single delimiter such as " ",-","-".". However I cannot find a method which allows multiple delimiters. I need to be able to split a richTextBox's text into an array list.

View 14 Replies

VS 2008 Changing The Mousepointer When The Forecolor Of Text Richtextbox Changes

Sep 9, 2009

I have an ap that requires the user to fill in information in certain areas in a richtext box. The areas that the user needs to complete is colored blue. To give the user some cue that input is required, I would like to change the mouse pointer when the pointer moves over blue text in the rtb.

View 2 Replies

VS 2008 Display A Text From Database Table In Richtextbox?

Jul 28, 2010

I am trying to display in my richtextbox1 a text from a table in my database according to some conditions that I decide by filtering. I worte a code for this but I think I am making a mistake because it gives errors all the time with Richtextbox (it does not accept datasource). Could you please help me on this?

Here is the code I have:

Dim dtCOP As New AmetailorDataSet.COPDataTable
Dim adapterCOP As New AmetailorDataSetTableAdapters.COPTableAdapter
adapterCOP.Fill(dtCOP)

[Code]....

View 1 Replies

VS 2008 Loading 10 MB Text File To Richtextbox And ProgressBar

Nov 20, 2009

im working on the project and loading 10 MB text file to richtextbox, but problem is my application freezing during that time. Can anyone post the solution for progressbar during the file is loading?

View 2 Replies

VS 2008 Select Only Text (excluding Images) In A RichTextBox?

Jul 1, 2010

I want to select all text in a richtextbox excluding any images in it.richtextbox1.SelectAll() will select all objects in the richtextbox not only the text

View 2 Replies

Bold Text Added To Listbox?

May 25, 2010

I have a form that users record some event that is happening. They enter in what different things are occurring, for instance like a Basketball game. When certain events happen "steal", "score", "foul" these will get inputted to a listbox that records the whole game and is timestamped. However for these specific event i want them BOLD . So it would look something like

3:24 STEAL 3:25 #45 stole the ball, passed to #54

Or something like that. How do i get certain items to be bold?

View 7 Replies

FindReplace & Bold Text In A String?

Apr 20, 2009

I am donig some FindReplace in my app and I wanted to know if there was a way to bold the text that i'm "replacing".I've found other posts on Bolding text in a RichTextBox through a While loop but I wanted to do this in a string and the .Find is not an option for Strings.Here's my code sample:

Code:
FormatData = Replace(FormatData, "TEST" , "THIS SHOULD BE BOLD")

View 1 Replies

Format BOLD And ITALIC To Same Text?

Apr 7, 2011

Can we able to format BOLD and ITALIC to the same text?

View 1 Replies

Forms :: How To Set Selected Text Bold

Feb 16, 2009

I just couldn't find the right words to say it but, the thing is, I just want to make a certain word inside a paragraph bold. The word will be automatically set to bold in runtime. See for example the words 'John' shall be all set to bold.

Here is the

tempstr = tempstr.Replace(vbTab, "")
Dim secstr As String = tempstr.Replace(Chr(10), " ")
str = Split(secstr, " ")

[Code]....

the output of the above code is, it only makes the first occurence bold. All other word "John" are just set to Regular text when what I want is to make it all bold.

What is lacking? I used the "for each loop" to visit all the words.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved