CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2006
    Posts
    123

    how i can make scroll to lable ?+change font size

    hello guys,
    1) how i can make scroll to lable ?

    2) i want to change font size of richtextbox by make listbox

  2. #2
    Join Date
    Sep 2006
    Location
    Eastern, NC, USA
    Posts
    907

    Re: how i can make scroll to lable ?+change font size

    Quote Originally Posted by honeyboy_20
    hello guys,
    1) how i can make scroll to lable ?

    2) i want to change font size of richtextbox by make listbox
    I don't quite understand what you're asking in question 1)
    But I'll take a stab at Question 2) ...
    If you are trying to change the richTextBox font using a listbox, then you have to have your fonts somehow in the listbox, then when you select a listbox item, get your number out, and if we assume the number is an int called fontSize, you can change the richtextbox font with:
    Code:
                if (fontSize != 0)
                {
                    richTextBox1.Font = new Font(richTextBox1.Font.FontFamily, (float)fontSize);
                }
    Last edited by petes1234; March 24th, 2007 at 11:11 PM.

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

Featured