Click here to Skip to main content
15,914,905 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: ANYONE??? Pin
Christian Graus29-Jan-07 15:53
protectorChristian Graus29-Jan-07 15:53 
GeneralRe: ANYONE??? Pin
harveyhanson30-Jan-07 5:30
harveyhanson30-Jan-07 5:30 
QuestionHow do i get the name of control where i pressed the contextmenu Pin
.NetRams29-Jan-07 0:56
.NetRams29-Jan-07 0:56 
AnswerRe: How do i get the name of control where i pressed the contextmenu Pin
Vikash Yadav29-Jan-07 1:21
Vikash Yadav29-Jan-07 1:21 
AnswerRe: How do i get the name of control where i pressed the contextmenu [modified] Pin
TwoFaced29-Jan-07 7:12
TwoFaced29-Jan-07 7:12 
AnswerRe: How do i get the name of control where i pressed the contextmenu Pin
TwoFaced29-Jan-07 8:10
TwoFaced29-Jan-07 8:10 
GeneralRe: How do i get the name of control where i pressed the contextmenu Pin
.NetRams29-Jan-07 18:36
.NetRams29-Jan-07 18:36 
QuestionRich Text Box Colors? [modified] Pin
BadBoyTazz4Ever29-Jan-07 0:43
BadBoyTazz4Ever29-Jan-07 0:43 
Hey Everybody!

Well i need to display something like this on form:

15 + 10 = 10 + 5 + 10

now i tried gdi+ but i can't find a way to find out where like the 15 ended to start the + in another color so i thought the rich texy box would be easy'er but it seems it's been to long since i used it as well:

the code:
<br />
     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
        Dim varStart As Integer = 0<br />
<br />
        rtBox.Text = "Hallo"<br />
        rtBox.Select(varStart, Len(rtBox.Text))<br />
        rtBox.SelectionColor = Color.Red<br />
        rtBox.Refresh()<br />
<br />
        MsgBox("Check 1")<br />
<br />
        varStart = Len(rtBox.Text)<br />
<br />
        rtBox.Text = rtBox.Text & " My Name Is "<br />
        rtBox.Select(varStart, Len(rtBox.Text) - 1)<br />
        rtBox.SelectionColor = Color.Black<br />
        rtBox.Refresh()<br />
<br />
        MsgBox("Check 2")<br />
<br />
        varStart = Len(rtBox.Text)<br />
<br />
        rtBox.Text = rtBox.Text & "BadBoyTazz"<br />
        rtBox.Select(varStart, Len(rtBox.Text))<br />
        rtBox.SelectionColor = Color.Red<br />
        rtBox.Refresh()<br />
    End Sub<br />


now the reason for the msgbox is just to force the pause of the code so that i can see how the rich text box refreshes! It does the same with or with out it!

What happens here is it writes the "Hallo" in red, then the " My Name " in Black & then it writes everything in RED after i add "BadBoyTazz"! What am i missing to get it to look like this: Hallo My Name Is BadBoyTazz

I can't see what the difference is between the first 2 words & when i add the "BadBoyTazz"

Thanx...

PS: If anybody can point me to a place where i can find the selution to the rich text box or gdi "version" please


-- modified at 6:52 Monday 29th January, 2007

I Live In My Own Little World! But It's Ok, They Know Me Here!

AnswerRe: Rich Text Box Colors? Pin
Martin.Smith29-Jan-07 2:49
Martin.Smith29-Jan-07 2:49 
GeneralRe: Rich Text Box Colors? Pin
BadBoyTazz4Ever29-Jan-07 3:43
BadBoyTazz4Ever29-Jan-07 3:43 
Questionfind and replace text from word documents Pin
Eric Georgiades29-Jan-07 0:30
Eric Georgiades29-Jan-07 0:30 
AnswerRe: find and replace text from word documents Pin
Eric Georgiades6-Feb-07 9:13
Eric Georgiades6-Feb-07 9:13 
QuestionQuestion about vb.net Pin
WestSideRailways29-Jan-07 0:06
WestSideRailways29-Jan-07 0:06 
AnswerRe: Question about vb.net Pin
Christian Graus29-Jan-07 0:07
protectorChristian Graus29-Jan-07 0:07 
Questionin vb Pin
Member 375262228-Jan-07 22:51
Member 375262228-Jan-07 22:51 
AnswerRe: in vb Pin
Christian Graus28-Jan-07 23:52
protectorChristian Graus28-Jan-07 23:52 
QuestionExport / Import in VB.net Pin
Yadav A Kumar28-Jan-07 22:28
Yadav A Kumar28-Jan-07 22:28 
AnswerRe: Export / Import in VB.net Pin
Christian Graus28-Jan-07 22:36
protectorChristian Graus28-Jan-07 22:36 
GeneralRe: Export / Import in VB.net Pin
Yadav A Kumar28-Jan-07 22:52
Yadav A Kumar28-Jan-07 22:52 
GeneralRe: Export / Import in VB.net Pin
Christian Graus29-Jan-07 0:06
protectorChristian Graus29-Jan-07 0:06 
QuestionAccessing Windows ACL using VB.Net 2003 Pin
greenclock28-Jan-07 22:07
greenclock28-Jan-07 22:07 
Questionbinding windows user control in a windows Form dynamically Pin
Irshad Ahmed28-Jan-07 20:53
Irshad Ahmed28-Jan-07 20:53 
AnswerRe: binding windows user control in a windows Form dynamically Pin
Christian Graus28-Jan-07 21:25
protectorChristian Graus28-Jan-07 21:25 
QuestionMultiple Language Support - Internationalization Pin
Marc Soleda28-Jan-07 20:40
Marc Soleda28-Jan-07 20:40 
AnswerRe: Multiple Language Support - Internationalization Pin
lmoelleb29-Jan-07 0:08
lmoelleb29-Jan-07 0:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.