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.
I've been googling, testing, etc for a couple hours and I'm right where I started off. the vb.net tab control sucks... Does anyone have an tips or code to make it so when I select a tab the font color changes OR it just makes the tab heading text bold?I've messed around with the draw commands and while that does work, it draws the borders/backgrounds so they are very old / outdated looking.This is basically for a simple tab text editor I'm working on when a textbox in the control changes I can update the associated tab with either a red font or just bold it to indicate the textbox on that tab is modified. I've definitely be open for alternative tab controls as long as they are free and come with a vb.net example :)
I created a form to capture a user name and password.I thought it would be nice, during the form load event, for me to put the windows username in the name field for them in case they were the same.When I do this the name appears selected/highlighted.I didn't expect this to be the default but it seems to be.I then use select(0, 0) to remove the selection I didn't want in the first place and try to move the focus down to the password field but it doesn't work.Can someone tell me if the text being automatically selected is normal and why I can't change focus to the password field.[code]
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.
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)
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?
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")
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:
I'm using My.Settings to store some text information which will be displayed to the user under certain conditions. What I'd like to know is whether part of the text (not all of it) can be formatted in bold?
The reason I'm storing in My.Settings is because it can be customized but not to the extent where I need to store it in a database. And while I'm at it, is it possible to format parts of MessageBox text and labels in bold, or is this an all or not at all situation i.e. changing the font property?
I'm adding text string into a list box together with data retrieved from text box, and I wanna bold that text but really don't have any idea how to do so.
E.g. listProducts.Items.Add("Product Name - " & textProdName.text)
I just wanna bold that first bit of text in the quotes.
i'm writing a simple program that outputs a report to a text file with code similar to below PrintLine(1, "Hello", "World") my question is how to format the text so it can be saved as courier new or bold? frustrated visual basic user
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.
IN VB.NET (VISUAL STUDIO 2005)I HAVE taken one textbox with some message and want to bold it by using chkbox control when checkbox is checked the text in textbox should be bold otherwise it is regular.i tried the code too many different ways but till now problem is not solved
There is a label control on .aspx The text "hello" comes from database i.e. label1.text = "hello" Note that, I do not have permission to change the UI code.
I would like to alter the value of the field in the table to show the text as bold i.e. <strong>
To have the text displayed as highlighted i.e. bold, I manually modified the text inside the field of the table to show
<strong>hello</strong>
Is this ok? It does not seem to work because in the label control I see: <strong>hello</strong>
What is the standard / best practices way to achieve the effect of text formatting within a label in a standard .NET Windows Forms Application? For example, I want a label I would programmatically change. However, I might want a particular word in the label to be bold.
I have a vb.net project containing the report viewer control that has a dataset bound to it. I have designed a letter in report viewer and need to highlight a few words by bolding and underlining the words. Can this be done? All I seem to be able to do is bold the textbox control, but then every text that resides in the text box will be bold and underlined. I cannot create a static label because the names may increase or decrease in size as well.
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..
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?
All i want to do is write some text into word... some of the text is normal text the other is bold... how do I achieve this?The samples I have seen, they either do normal text or bold.. but in different lines utilising InsertParagraphAfter()I need to have both in the one lineie how do i do the following line? using vb.net and word automation (word 2010)
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?