using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication4
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
label1.Text = "C#程序设计";
hScrollBar1.Maximum = 72;
hScrollBar1.Minimum = 4;
hScrollBar1.SmallChange = 1;
hScrollBar1.LargeChange = 5;
hScrollBar1.Value = 16;
}
private void hScrollBar1_Scroll(object sender, ScrollEventArgs e)
{
textBox1.Text = hScrollBar1.Value.ToString();
label1.Font = new Font(label1.Font.Name,hScrollBar1.Value);
}
}
}