Results 1 to 3 of 3

Thread: registering font style

  1. #1

    Thread Starter
    Lively Member ayan's Avatar
    Join Date
    Jan 2004
    Posts
    112

    registering font style

    i don't know how to register the font style. all i have here is the fontname and fontsize. in savesetting...
    VB Code:
    1. rkfr.SetValue("fontname", RichTextBox1.Font.Name.ToString)
    2.       rkfr.SetValue("fontsize", Double.Parse(RichTextBox1.Font.Size))
    3.       rkfr.SetValue("fontstyle", RichTextBox1.Font.Style)
    and in getsetting...
    VB Code:
    1. RichTextBox1.Font = New Font(rkfr.GetValue("font").ToString, _
    2.       Double.Parse(rkfr.GetValue("fontsize")), rkfr.GetValue("fontstyle"))
    it throws an error about overloaded resolution failed. how do i register the fontstyle? sorry for bothers and thanx...

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    hmm why are you using the GetValue funciton? it looks really weird.
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3

    Thread Starter
    Lively Member ayan's Avatar
    Join Date
    Jan 2004
    Posts
    112
    thanx for the reply. what should i use?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width