Click to See Complete Forum and Search --> : how i can make scroll to lable ?+change font size


honeyboy_20
March 24th, 2007, 07:37 AM
hello guys,
1) how i can make scroll to lable ?

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

petes1234
March 24th, 2007, 11:05 PM
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:

if (fontSize != 0)
{
richTextBox1.Font = new Font(richTextBox1.Font.FontFamily, (float)fontSize);
}