Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 17:46

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



VB.net Richbox Formatierung

Discussion on VB.net Richbox Formatierung within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 55
Join Date: Oct 2009
Posts: 288
Received Thanks: 82
VB.net Richbox Formatierung

Code:
RichTextBox1.Find(account, RichTextBoxFinds.MatchCase)
RichTextBox1.SelectionFont = New Font("Verdana", 12, FontStyle.Bold)
RichTextBox1.SelectionColor = Color.Red
Dieser Makiert leider alles in der Richtexbox Wie mache ich das das das wort account makiert wird nicht mehr.
nag is offline  
Old 08/16/2010, 01:01   #2
 
Madd Eye's Avatar
 
elite*gold: 260
Join Date: Apr 2010
Posts: 229
Received Thanks: 142
Code:
RichTextBox1.Find([COLOR="Red"]"[/COLOR]account[COLOR="Red"]"[/COLOR], RichTextBoxFinds.MatchCase)
ein simpler fehler xD
Madd Eye is offline  
Old 08/16/2010, 11:10   #3
 
elite*gold: 55
Join Date: Oct 2009
Posts: 288
Received Thanks: 82
Nein xD Dies ist eine Variabel. Ich speichere darin beim Lesen einer Mysql tabelle Accountnamen. Selbst wenn ich einen Accountnamen, wie "nag" eingebe, funktioniert es nicht. (Nein es liegt nicht an den "")
nag is offline  
Old 08/16/2010, 14:29   #4
 
elite*gold: 0
Join Date: Nov 2007
Posts: 62
Received Thanks: 17
Kp ob das so geht aber versuch es mal so:

Code:
Private Sub SelectWithColor(ByRef rtf As RichTextBox,
                                ByVal textToSelect As String,
                                ByVal color As Color,
                                ByVal font As Font)

        Dim index = rtf.Find(textToSelect, RichTextBoxFinds.WholeWord)

        If index <> -1 Then
            ' Select our word.
            rtf.Select(index, Len(textToSelect))

            ' Select new font.
            rtf.SelectionFont = font

            ' Select color of selection.
            rtf.SelectionColor = color
        End If
    End Sub
Dann halt ganz einfach "SelectWithColor" aufrufen.

Code:
SelectWithColor(Me.RichTextBox1, account, Color.Red, New Font("Verdana", 12, FontStyle.Bold))
Demon-777 is offline  
Thanks
1 User
Old 08/16/2010, 15:01   #5
 
elite*gold: 55
Join Date: Oct 2009
Posts: 288
Received Thanks: 82
Danke aber ich hatte heute Morgen eine andere idee. habe alles in 2 Richboxen gemacht. Es geht doch in meinem Script. Trotzdem Danke-
nag is offline  
Old 03/22/2013, 16:39   #6
 
elite*gold: 0
Join Date: Mar 2013
Posts: 3
Received Thanks: 0
xd
farmeeer3 is offline  
Old 03/23/2013, 11:05   #7
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,810
Quote:
Originally Posted by farmeeer3 View Post
xd
Was hast du bitte für Probleme in nem Thread von 2010 nen sinnlosen Beitrag abzugeben
Kraizy​ is offline  
Old 03/23/2013, 12:01   #8

 
Graphicscore's Avatar
 
elite*gold: 3179
Join Date: Mar 2012
Posts: 1,972
Received Thanks: 254
Quote:
Originally Posted by Kraizy​ View Post
Was hast du bitte für Probleme in nem Thread von 2010 nen sinnlosen Beitrag abzugeben
LoL
Graphicscore is offline  
Reply


Similar Threads Similar Threads
[Problem]Mein Cd Laufwerk spackt seit Formatierung
08/08/2010 - Technical Support - 12 Replies
Hallo E*PvP comunity. Ich habe gestern Abend meinen Pc formatiert und heute Morgen habe ich meine Cd für die Fahrschule reingeschmissen und es passiert nichts. Ich beschreibe das mal genauer: - Cd reingetan - es blinkt, dass die Cd gelesen wird - nach 10 sekunden blinken passiert nichts
(How to) Film oder nur Musik downlaoden + Formatierung
07/21/2010 - Tutorials - 3 Replies
Hey Users hier ein kleines TuT wie ihr von allen Webserver mit Filmen (z.b. Youtube; Clipfish, MyViedo oder ruTube (für Naruto ;-) den Film oder die Musik downlaoden könnt 1. downloade aTube catcher 2. öffne es 3. wähl ein/e Video/Musik aus und füg den Link bei Quelle ein 4. Speichern in = wo du es auch willst. 5.dann wählst du das Format was es sein soll (also für Musik Mp3 und für Video Mp4) dann nur noch denn Button drücken und freuen :) Wenn du Filme hast die nicht von Youtube...



All times are GMT +2. The time now is 17:46.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.