Get A Label To Have 2 Colored Texts?
Apr 29, 2009
i'm trying to get a label to have 2 colors.ex. of label text: now editing: (written as the set color) trujade.html (in a new font color) that way, if i'm editing, let's say a css file, and i have have the .css file extension in a different color format from the .html extension, i can easily notice if i'm editing a html or a css file just by looking at the file name color.
View 3 Replies
ADVERTISEMENT
Apr 28, 2011
I am creating an application for a point of sale in a bar in which I have a form (frmTransactions) where there are some radio buttons to be selected (main groupbox), each radio button is exclusive, and some combo boxes in the second groupbox to be ticked, which are instead not exclusive.In this form I created a 'Print Invoice' button which opens the form invoice (frmInvoice) and there are some labels that display the text shown on the transactions form; although I managed to do fairly easily the part regarding the customers details I am now finding some difficulties with the part regarding the transactions selected.[code]...
View 7 Replies
May 4, 2011
I have a panel on a form in which I have two labels and a small picturebox. The label texts and image in the picturebox are changed from time to time program matically. I would like to have where a user can click anywhere in the panel to bring up another form, but I have not been able to make it work. Since the labels are I guess "above" the panel, if the user clicks on the label itself, it does not trigger the panel onclick event.
View 2 Replies
May 29, 2012
I have an application I am creating that displays pump information based on customers in a database. I am using VB2008 .NET3.5.I have a combobox that has a selection for a unit of measure. What I want to happen is when that is changes the labels that have a unit of measure change to reflect the change. There are 15 labels total that need to be changed and all there names are the only ones in the project that start with a X if that helps at all. I would like to avoid creating a bunch of labels and changing the visible property and just change the text value of each one.
View 1 Replies
Sep 27, 2009
I tried to get the value text at the end of the field id equal text on the webpage at each line. I only want to get the two value text at each line which something is like this: 111.11.11.11:4000. I want to input them in the messagebox but when I clicked on the button, it displayed as "fieldid=fieldid2=". I am trying to make the project to check and get it response as like this 111.11.11.11:4000 but it got it wrong. The reason why I want to get do this is because when I get the value text with the full ip address and the open port to input the strings text on the messagebox, I can start the next method by writing the code to make the project connecting to the sever with an open port.
Here it the code:
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' used to build entire input
[Code].....
View 1 Replies
Dec 7, 2007
I'm new to VB.net programming on printing a page to a thermal printer (Epson T88IV). I really had a hard time figuring out how to code the printing of a bitmap image and some text, while sending commands (through font control) to the printer.I tried sending the escape characters with Control font, but the Graphics.DrawString of PrintPageEventArgs do not allow it.. so I used the RawPrinterHelper class I found on Microsoft KB. It worked out but, I cannot print a bitmap image with it.Anybody knows how to do that?
View 9 Replies
Jan 28, 2010
I was wondering if there's anyway to color stuff in a textbox? example: I have a big textbox and if I type hi in that textbox I want that text to become grey, and if I type bye I want the text to become red, any ideas?
btw, I took your advice from my latest thread and installed a stable version of 2005
I did some thinking and come up with the idea "if textbox1.text ="hej" then" set a color but then I realized the whole text would become to coded text, hmm..
View 9 Replies
Feb 26, 2012
I heared about an encrypting function that encrypt the texts with a password I don't know exactly how it
View 6 Replies
Jan 6, 2011
how cam i put the texts between the prackets in an arry for example
[Code]...
i need a code to create an arry with the following items
[Code]...
View 6 Replies
May 6, 2012
I have a picture that is the map of a circuit [URL]. Now I want a Square to follow that circuit. I have tried some things but I couldn't get it right. How would you start? And how do you access the color values of the "line" to follow it with the square? Or is that even the wrong way to do it?
View 10 Replies
Jun 17, 2010
i have the following question: my
Private Sub lstKleur1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lstKleur1.SelectedIndexChanged
Dim Geel As String[code]....
i want the following: there are four items in my listbox: Rood, Groen, Geel, Blauw (these are dutch for red, green, yellow, blue). and when i click one of these, the button (Kleurknop1) needs to get the right colour. but when i click it now, it just keeps getting green, no matter which one i click.
View 5 Replies
Jan 25, 2010
I don't know how to add colored text to a richtextbox.
To make already existing text colored, I have tried things like:
RichTextBox1.SelectionStart = RichTextBox1.Find("colored word")
RichTextBox1.SelectionColor = Color.Blue
RichTextBox1.SelectionLength = 0
..so it will change the color of the found word.
The problem is, when the "colored word" exists multiple times in the textbox, it will never change theirs color. It only searches for the first "colored word" and it wont affect the others.
It would be even better when someone knows how to directly add colored text instead of changing it when it's added.
View 10 Replies
Jan 24, 2012
I am trying to wrap my head around getting some blinking colored text and lasting for 3 seconds on the screen. I'm creating a game where you hit submit and if the answer is correct a label with popup and blink 3 different colors for about 3 seconds also a groupbox background color change. I have found many different ways on here how to do the blinking text. I just can't figure out how to do it for 3 seconds and then disappear. Here's a general idea of the code
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code].....
View 4 Replies
Apr 14, 2010
I am working with graphic methods. I am trying to create a piano using brushes, pens, and rectangles. I have 14 white keys and started making the black keys. For some reason I cant get the black keys to overlap the white ones. Is there a command to send the black rectangles to the front?
View 6 Replies
Jan 29, 2011
On the left side margin there are some colored lines (green and yellow). My program shows no errors, warnings or messages but when I execute the subroutine it seems to skip the rows with the colors in them.
View 4 Replies
Jun 1, 2010
On the left side margin there are some colored lines (green and yellow). My program shows no errors, warnings or messages but when I execute the subroutine it seems to skip the rows with the colors in them.
View 1 Replies
Jan 26, 2010
I have 2 textboxes where the user enters texts of same length. I need to do a char by char comparison. For this, i used Chars(i). Now, i have been trying to highlight the differences at the string index which is different. I am not able to figure a way out for that.
for example:
string1 = HELLO
string2 = WELLM
When the user hits Compare button, the code should highlight H and W, and also O and M maybe in the same respective textboxes or 2 different labels etc.
View 1 Replies
Mar 27, 2011
I've created a software with 50 textbox and 4 lists how can I do "Save As" "Open" to restore or save them ?
View 1 Replies
Feb 3, 2009
Using VB 2008 we are inquisitive or it's possible to give separate colors for the items in a listbox.
View 3 Replies
Jun 17, 2010
I want to have certain items in a listbox having a color (red in this case).
For example:
Vegetable
Fruit
Fruit
Fruit
[Code]....
View 2 Replies
Jul 23, 2009
is it possible to save 4 strings from 4 textboxes into 4 variables and give them a name so when i will click the button it will save them as one name in a listbox and when a user clicks the item from listbox it will show the 4 strings that i have saved?
View 7 Replies
Feb 14, 2012
how to add the texts, and items in TextBox and ComboBox to Datagridview without use any database.
Example: i have TextBox1 and ComboBox1. i want to add the texts and items to datagridview, first Col1.ID, Col2.Word, and Col3.Soluton.
For ComboBox1 use to add the items to Col2 and Col3 will be added by TextBox1.
View 2 Replies
Dec 10, 2010
My objects contain curves and texts. I draw the objects with something like this[cod]e...
View 7 Replies
Apr 6, 2009
I have two listboxes. One for unselected bound to a datareader and one for selected. It can move all, some back and forth. I have the move buttons in an update panel and generate a report on a button click. I have this working fine. What I need to do now is color the items red or blue based on a third value from the datareader. Then add buttons to move all red >> / << or all blue >> / << Unfortunately, I can't post the code. I'm using VB.Net 2.0.
View 14 Replies
Jun 2, 2011
I am developing a project in VB2010 Express ,I want to high light the spoken text ,but i can speaking can not to high light the text?
Private Sub Voice_AudioLevel(ByVal StreamNumber As Long, _
ByVal StreamPosition As Object, _
ByVal AudioLevel As Long)
[code]....
View 2 Replies
Jun 28, 2011
I do have the User Control from a previous Visual Basic 6.0 project that allows certain colors to become transparent. But what I'd like to find out is, how can I make a certain color combination transparent using a User Control in Visual Basic 2008 Express?
View 2 Replies
Oct 25, 2011
I am trying to get diffrent backround colors on the items added to the listbox (And no, i cant use ListView becouse it misses some important stuff..)
View 1 Replies
Nov 3, 2010
I am trying to get diffrent backround colors on the items added to the listbox (And no, i cant use ListView becouse it misses some important stuff..)I have found some code, but it only changes the text..
View 2 Replies
Jul 10, 2009
I have a richtextbox with some colored and formatted text
I'm using regex to put some html codes around the keywords so I can dump the output into a wiki i have
For example:
Code:
What I'm struggling with a little though is how to do the comments.
lets say I have:
CODE:
my regex does:
Code:
I can assume that if I see a -- then the rest of the line is green..
I have
Code:
which puts the font tag at the start, but dont know how to get the end of that line..
View 6 Replies
Nov 15, 2011
I create a program whose functionality would be selecting a file, then gets the contents of that file (Word or text files). The program, of course, has a Richtextbox on it where the file content will be filled to.
View 4 Replies