Make Every Instance Bold?
Oct 12, 2008
(I think) but I wish to make every single instance of whatever is in TextBox3.text to be bold within RichTextBox1.text.
I have the following code:
Code:
RichTextBox1.SelectionStart = RichTextBox1.Find(TextBox3.Text)
Dim bfont As New Font(RichTextBox1.Font, FontStyle.Bold)
RichTextBox1.SelectionFont = bfont
Do I need to loop it? If so, how? I've already tried with a standard for loop with an infinite counter, but it doesn't increase (doesn't search) past the first bold instance found.
View 2 Replies
ADVERTISEMENT
Aug 30, 2011
I am looking for a way to make my app running in a single instance mode and showing the MainWindow of the first instance when another instance is launched.I do a quick search on the internet but I did'nt find anything to open the MainWindow of the first instance or it was for Windows Form not for WPF.
View 1 Replies
Dec 2, 2010
vb.net
Dim xlApp As Excel.Application
Dim xlWorkBook As Excel.Workbook
[code].....
View 2 Replies
Jun 22, 2010
How to make datagridview current row bold?
View 1 Replies
Feb 6, 2012
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 Replies
Mar 8, 2010
Can anyone show me how to programatically make a label font bold?
lblid.Font.Bold = True
I tried the above, but it did not work and gave Read Only Error.
View 6 Replies
Jun 9, 2011
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
View 1 Replies
Jan 20, 2010
I am using following codes to format datagridview column headers,that works fine.My question is: how to make all headings bold? (bold header row)[code]
View 1 Replies
Jun 2, 2011
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.
View 2 Replies
Dec 7, 2010
using vb.net 2005, creating a windows form.
I need to programmatically make part of a string bold, how to do this?
EX: here is the asp.net version of what i need
Dim aString As String = "<b>Product Details:</b> here are the details of the product"
but I need to do this for a windows form, is there a good way to do this?
View 2 Replies
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
Mar 4, 2011
Everything I read points me that I'm writing the following code correct, but VS keeps telling me : Object reference not set to an instance of an object.
[Code]...
View 6 Replies
Dec 9, 2010
I have a form that has 35 checkboxes. I would like to change the font to bold if the box is checked to make it stand out in the document.
View 12 Replies
Jan 20, 2010
How to make datagridview current row bold & green color?
View 1 Replies
Jul 4, 2011
so one of my error message in my program looks like this MessageBox.Show("You forgot to select a Location!" & ControlChars.CrLf & "You must select a workshop and location then click Add workshop button," & ControlChars.CrLf & "repeat the process few times and" & ControlChars.CrLf & "then click Calculate button to calculate the grand total", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning)and i want the texts "Add workshop" and "Calculate" bold or highlighted when the message box appears, how do i do that?
View 3 Replies
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
Dec 15, 2009
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 Replies
May 5, 2010
How to programmatically change foreground color and make bold text in individual cell location on DataGridView control (Visual Basic)?
I use "dgMatrix.Rows(r).Cells(c).Value = x" to assign individual numeric values to individual cells in a DataGridView control. My question; is there a similar way to change foreground color and make bold the text in this cell, by specifying the individual row/column cell location?
For example; for cell (row 3, col 5) in the DataGridView make text in cell say red and bold or blue and bold so as to highlight and distinguish individual cell contents. As needed, I will also need to reset these properties (foreground back to automatic/black and font from bold back to regular); the reset could be done globally to the whole DataGridView as opposed to indiviaually by cell.
View 1 Replies
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
Mar 3, 2010
DGV.. if user edits cell make cell bold
Is there a way to check if the cell has been changed via DGV without calling getchanges() on DS on every cell edited?
when user enters a cell and changes a value i would like it to change font to bold for that cell.
View 3 Replies
Feb 1, 2011
I have a class "Character" that holds character stats and skills. I make a new instance of it "MyCharacter". The problem is I would like to use it like this.
MyCharacter.stat.charactername ="whatever"
Where stat is another class within Character or
MyCharacter.skill.lockpick=10, b
But I can't seem to do it.
View 3 Replies
Dec 9, 2008
I use this code but it doesnt seems to work...
If Process.GetProcessesByName(My.Application.Info.ProductName).Length > 1 Then
MsgBox("Program already running!.")
End If
EDIT: ShowInTaskBar = False
View 3 Replies
Aug 21, 2011
Is there any way to make a class instance public?In my mainform I define an instance of a certain class and then later on in some other forms which appear I want to alter this class.I try and pass them through when creating new instances of these other forms and it tells me Error3<instance of the class I want> cannot expose type <the class> outside the project through class <the form I want to edit it with>Which I gather from documentation is about it defeating the purpose to have a private class suddenly be thrown aroudn.but then how do I make it public? I can't define it in the first place as public myXClass as XClass, it only accepts private.
View 6 Replies
Jun 2, 2012
In this chunk of a code, the writer makes a reference to a recordset object and I just wanted to make sure I understood why before moving on. [code]...
In LoadDataBound, it says set rs = GetData(). This calls to the Function below, but why does it require to be set as an object of the rs recordset. Correct me here, because i'm most likely wrong, but does it require this so that you're able to make a function out of the recordset without having to use the same name for both (recordset and function) ? Or is there another process going on here that i'm unaware of.
View 1 Replies
Aug 4, 2010
I have a mdicontainer form that summons forms. My problem is when the a user clicks again the menu for that form, it also make another instance of it.
What I did is declare a public class with a public variable on it ex: Boolean isFormOneOpen = false. Then every time formOne opens, it checks first the global variable I declared a while ago if it's false, if it is, instantiate an object of a formOne and then show it. Otherwise, do nothing. Very static, imagine if I have many forms, I have to declare a variable for each form to check if it's already open. Maybe a method that accepts a Form? Or any more clever way to do this.
View 2 Replies
Aug 25, 2009
in vb 2008 express this option is available under application properties. does anyone know what is its function? does it make it so that it's impossible to open two instances at the same time?
View 3 Replies
Feb 10, 2009
assume that i have two forms(form1 and form2)form1 code
Imports System.IO
Public Class Form1
Inherits System.Windows.Forms.Form
[Code]....
View 5 Replies
Aug 31, 2010
How could i make sure that only one instance of a child form is loaded in my application.
View 3 Replies
Jan 19, 2010
All i want to do at the end of my sub is make it go to the next instance in the list
say if its on A (the first instance) i do my thing then it rolls to the next instance B and so on
View 7 Replies
Apr 6, 2009
I have a class inside a class.I need to expose the properties of the 2nd class to other classes, therefore it is public.However, I do not wish other classes to be able to create instances of this 2nd class, it should only be instantitated from its parent class.I thought I could resolve this issue by making the constructor of the 2nd class private, but this even prevents the parent class from instantiating its child class! How can I work around this, do I have to make the constructor public and allow anybody to create an instance of the class?
View 3 Replies