protected void SelectFont_SelectedIndexChanged(object sender, EventArgs e) { string font = SelectFont.SelectedValue; Style style = new Style(); style.Font.Name = font; PreviewText.ApplyStyle(style); }