Results 1 to 4 of 4
  1. #1
    DawgiiStylz's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Dawg House
    Posts
    7,811
    Reputation
    219
    Thanks
    2,896
    My Mood
    Tired

    Keeping font properties

    I have a feature that I really want to add, but I have no idea on how to do this..

    What I'm wanting to do is to have a text editor where i can write out bbcode tags and then later preview with the font syntax that was assigned to each character.
    Example:

    In this text editor I could write

    [B]This font will be bold[/ B]

    and then the text will be that.. and when I want to view it in another text field, it will display as

    This font will be bold

    Anyone have any idea on how to do this or lead me in the right direction?

  2. #2
    King Aldrin's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    76
    Reputation
    10
    Thanks
    134
    My Mood
    Amazed
    I think there's a plugin in codeproject....just search it...I forget the name

    ---------- Post added at 01:10 AM ---------- Previous post was at 12:45 AM ----------

    This is what I'm talking about:
    Fast Colored TextBox for Syntax Highlighting - CodeProject
    Imports MPGH.NET
    Public Class King_Aldrin

    Private Sub King_Aldrin_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim thanks = mpgh.user.kingaldrin
    Dim help As Boolean
    If mpgh.user.other = Ask.question Then
    help = True
    Else
    help = False
    End If

    If help = True Then
    If mpgh.user.kingaldrin.answers > 0 Then
    MsgBox("Did I helped you? then press the Thanks button!", MsgBoxStyle.Information)
    Else
    MsgBox("I'm sorry! I think I can't answer your question")
    End If

    Else
    MsgBox("You didn't ask a question, Please ask a new question now by posting a new thread or PM'ing me!")
    End If
    End Sub
    End Class

  3. #3
    rabbit.coder's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    29
    Reputation
    10
    Thanks
    50
    IF you are using a RichTextBox you could select text with your mouse and add stuff like this to a button to a button

    Code:
    RichTextBo*****lectionFont = New Font("Tahoma", 12, FontStyle.Underline)
    RichTextBo*****lectionFont = New Font("Tahoma", 12, FontStyle.Bold)
    RichTextBo*****lectionFont = New Font("Tahoma", 12, FontStyle.Italic)
    but if you want to use BB code its going to be a heap of work

  4. #4
    DawgiiStylz's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Dawg House
    Posts
    7,811
    Reputation
    219
    Thanks
    2,896
    My Mood
    Tired
    Quote Originally Posted by rabbi*****der View Post
    IF you are using a RichTextBox you could select text with your mouse and add stuff like this to a button to a button

    Code:
    RichTextBo*****lectionFont = New Font("Tahoma", 12, FontStyle.Underline)
    RichTextBo*****lectionFont = New Font("Tahoma", 12, FontStyle.Bold)
    RichTextBo*****lectionFont = New Font("Tahoma", 12, FontStyle.Italic)
    but if you want to use BB code its going to be a heap of work
    What I'm trying to do is send text to a database, and return with the same font

Similar Threads

  1. warrock keeps closing
    By sev3nâ„¢ in forum WarRock - International Hacks
    Replies: 11
    Last Post: 05-02-2007, 03:08 AM
  2. [Help]KEEPS SAYING UNREGESTERD
    By Cataldo in forum WarRock - International Hacks
    Replies: 5
    Last Post: 04-16-2007, 04:00 PM
  3. My comp keeps crashing while playing KOL...
    By m164life in forum Hardware & Software Support
    Replies: 7
    Last Post: 02-19-2007, 08:50 AM
  4. Download fonts to where?
    By acepwnage in forum Art & Graphic Design
    Replies: 3
    Last Post: 07-13-2006, 01:55 AM
  5. how do you add fonts in PS
    By darkone1149 in forum Art & Graphic Design
    Replies: 2
    Last Post: 02-06-2006, 05:32 PM