Keep Bold / Italic / Underline Options On Text Resize

Dec 20, 2009

i am using the following code to resize text.all you have to do is hold the Shift key down and scroll the MouseWheel either up or down..[code]i cannot seem to figure out, is how to keep the font options that were previously set ex.if i set a word to bold, italic, or underline, and use my shift + mousewheel to resize all or just selected text, all the options are reset to default, meaning, no options as previously selected..

View 7 Replies


ADVERTISEMENT

Formatting Text (Bold, Italic, Underline) Etc Going Into A RTB

Mar 14, 2011

RTB.text (or .rtf) = "Some text" & "some bold text" & TextBoxA.text & BoldTextBoxB.text.

How to I make "some bold text" bold and the text in "BoldTextBoxB" bold when it goes into my RTB?

I need bold, italic, and underline, but would prefer a general solution.

View 9 Replies

Bold / Italic / Underline For Multiplefonts

Jul 14, 2009

I hav written some code for creating bold, italic , underline text in rtb but its not working for text consisting of multiple font.[code]where frmDocument is the child form containing rtb and text1 is rtb. What is the problem?

View 11 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

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

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

Send An E-mail With Underline , Bold And Color Text In Program?

Feb 5, 2012

How to send an e-mail with underline, bold and color Text in visual basic 2010

View 12 Replies

Manage Radio Buttons' Text.. Underline It, Bold It And Enlarge It With A Check Box

Oct 31, 2010

I was wondering how can I change the text of a Radio Button with the help of Check Box...Let's say the text inside the Radio Buttons starts in size 10, Not Bolded or Underlined and in Black.

I have 4 Check Boxes and each of them does something to the Radio Buttons. One of them should make the font Bold, another Underline it... Change color,and Enlarge font. What codes should I use for that?

View 2 Replies

Bold/Italic W/different Fonts?

Dec 7, 2009

When I try and bold two different fonts at the same time, it won't work. Is there any way I can do this like it works in a Font Dialog? Here's my code:

Code:
Try
If RichTextBox1.SelectionFont.Bold = True Then

[code].....

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

Create A Font That Is BOLD And UNDERLINE?

Aug 11, 2009

HOw can i create a font that is "BOLD" as well as "UNDERLINE"?

View 2 Replies

VS 2008 - Create A Page Where A User Can Type A Document And Have It Be Bold Italic Or Underlined?

Jul 2, 2009

I am trying to create a page where a user can type a document and have it be bold italic or underlined. When the user clicks on bold and italic it should be bold and italic. when they are not clicked it should not be. I am having trouble finding a stable solution. I can only seem to change it to either bold or not bold or italic or not italic and not bold and italic.

View 10 Replies

Make The Textbox.text Turn Italic ?

May 18, 2010

I am trying to make the textbox.text turn italic when textbox.text = "" using:

If TextBox1.Text = "" Then
TextBox1.Font.Italic = True
End If

However, it says Property 'Italic' is 'ReadOnly'.Also, I am trying to turn the font color to red with a button, and turn it back to black with another.

View 2 Replies

VB Richtextbox - Setting Specific Text To Italic Font Style

Mar 19, 2011

I have created a Richtextbox, which produces text based on user-inputted variables as well as some basic formatting - eg: name = txtname.text richtextbox1.text = "Hello my name is " & name & "." What i want to do is set the text in the name variable in Italics when it is displayed, like this.

View 3 Replies

Underline A Textbox Text?

Feb 11, 2010

The condition is Maximum length of the textbox is 28. i need to show the line upto 17 characters, when user try to enter any value in the textbox.

View 5 Replies

2008 - Underline Text On Selecting

Mar 15, 2009

i have a button and what i select i want to be underlined. is it possible to do it?

View 11 Replies

Underline A Specific Text In A Label In .net?

Mar 11, 2010

I want to underline a word in a sentence in vb .net.

View 3 Replies

VS 2008 Underline Lable Text?

Apr 18, 2009

Is it possibble to underline part of the lable's text?

Lable1.Text = "How are you? Good."

View 13 Replies

VB - Make The Underline Lost In Mask Text Box?

Nov 16, 2010

in mask textbox, i was try to do all with what i wan, but i face is how to make the underline lost in mask text box? 2nd question in rich text box, i ald done a rich text box, basically when u debug it, u can write as many row as possible but i face is when i put accept button on one of those button i create, when i debug, i trying to enter another row in text box,

[Code]...

View 14 Replies

Underline Or Style Certain Parts Of Text In A Rich Textbox Control?

Jan 12, 2012

I am wondering how to style text like in Notepad++ when you have certain operands and it changes their color.

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

Underline The Text Of A Text Box?

Oct 10, 2008

how do underline the text of a text box so i type something in a text box and click done it would open a new form with a rich text box and shows what i typed in both text boxes but the text in text box 1 is underlined

View 6 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 2010 Options View Control - Child Options?

Aug 20, 2011

I am in need of a form that shows various options, exactly like the Options in Visual Studio. Since there are so many options I too want them categorized, with a TreeView to the left taking care of showing the right category.The usual 'easy' approach here would be to just place a TreeView control on the form, add some nodes, and give those nodes a tag or key that corresponds to a panel or UserControl with the options for that category.Since there will be a lot of options however, this is not really feasible design-wise; the form would be cluttered with possibly 50 panels, all of which I would need to select and bring to front from time to time to add controls to them that represent the options.

So I decided to create a custom control that does exactly that. The control is very similar to my Wizard usercontrol, users can add OptionsPanels at design time, which inherit Panel and simply represent one panel of options. When they do, the panel is added to a container panel, and at the same time a TreeNode is added to a TreeView. The control uses a custom ControlDesigner to handle design-time clicks in the Treeview, selecting a different node would select and bring to front the corresponding panel, allowing the user to add the controls he wants.

Due to the design time support the problem of having 50 panels is no longer present, only one panel will be visible at a time and selecting the right panel is as simple as selecting the corresponding TreeNode, just as during run-time. Anyway, I got all this working, but only for a single 'level' of categories. As you can see in the Visual Studio options, there can be multiple levels of categories. For example, the Environment node has a bunch of children, where each child represents one 'options panel'. There can even be deeper nesting, see the Text Editor node for example.Let me begin by drawing out the basics of how my control works so far.

The main control is an OptionsView control, which contains a SplitContainer with a TreeView to the left and a OptionsPanelContainer to the right. The OptionsPanelContainer is merely a Panel to which only OptionsPanel controls can be added, and which raises events when this happens, as well as when OptionsPanels are removed from it. An OptionsPanel also inherits Panel, and these are the actual panels the users will see in the control, one for each option category.For now, each OptionsPanel has exactly one corresponding TreeNode (and vice versa). In the Visual Studio options, each 'parent' category usually has a 'General' node as the first child, and the parent and this General node show the same option panel, but I am ignoring that for the moment.

The OptionsView control has a property Panels that returns the ControlCollection (Controls property) of the OptionsPanelContainer (in other words: it returns a collection of OptionsPanels that are in this container panel).

vb.net
<Editor(GetType(Designers.OptionsPanelCollectionEditor), GetType(UITypeEditor))> _ <DesignerSerializationVisibility(DesignerSerializationVisibility.Content)> _ Public ReadOnly Property Panels As Control.ControlCollection Get Return Me.PanelContainer.Controls End Get End Property

A custom CollectionEditor for this property takes care of the designer: even though the property type is ControlCollection, the CollectionEditor knows it should create instances of the OptionsPanel control instead of just Controls.When it does this, a corresponding TreeNode is also created and its Tag property is set to the OptionsPanel. Vice versa, the Node property of the OptionsPanel is set to the node. Hence the node and panel both know their corresponding object.

vb.net
Public Class OptionsPanelCollectionEditor Inherits System.ComponentModel.Design.CollectionEditor Public Sub New(type As Type) MyBase.New(type) End Sub Protected Overrides Function CreateCollectionItemType() As System.Type

[code]....

So far so good, this all works fine. I can add Panels via the designer and when I do a new TreeNode appears in the TreeView. I can select this node and the panel becomes visible (comes to the front).Now, I am a little stuck. How do I implement child option panels? And more importantly: how do I let the user add child panels?The most logical choice I think is to let each OptionsPanel have a property (ChildPanels or something) that returns the child OptionsPanels for that panel. Once the user selects an OptionsPanel then, he can look in the property grid to find its ChildPanels property and add child panels to that.

There is a problem though: what would this property return? It must return a ControlCollection of some container (this is, I think, a requirement for the designer features to work, otherwise panels are not added to the Form.Designer.vb file). But there is no container. I cannot add them to the OptionsPanel itself, that would make no sense because the parent OptionsPanel has its own set of controls (the options itself...), there cannot be another (fully docked) Panel on top of those obviously.The container of the main OptionsView then? That is not an option either, its Controls collection holds ALL OptionsPanels, not just the children of the selected panel. I cannot 'select' only the right panels either, that would require me to return a new instance of ControlCollection, it would be impossible to return the actual ControlsCollection that holds merely a small selection of its controls.

View 5 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

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