8 Jun '14

Anupa Manipal

A professional Software Developer in VB.NET - SQL Server and learner of PHP. Expertise in implementation of various projects including designing, development, coding and implementation of software applications.

0 Shares

Changing Font property, Color and Alignment on Runtime

This tutorial explains Changing Font property, Color and Alignment on Runtime in VB.NET. This simple program which explains to change style, Fore color, and alignment on run time. FontDialog used to change font properties, ColorDialog property used to change color of the text in multiline textbox.

To change Textbox font on runtime:
FontDialog1.ShowDialog()
TextBox1.Font = FontDialog1.Font

To change Text color on runtime:
ColorDialog1.ShowDialog()
TextBox1.ForeColor = ColorDialog1.Color

To change Text alignment on runtime:
Align right side : TextBox1.TextAlign = HorizontalAlignment.Right
Align Left side : TextBox1.TextAlign = HorizontalAlignment.Left
Align Centerside : TextBox1.TextAlign = HorizontalAlignment.Center

Video tutorial:

Download Project code:

download source code

About Anupa Manipal

A professional Software Developer in VB.NET - SQL Server and learner of PHP. Expertise in implementation of various projects including designing, development, coding and implementation of software applications.

Related Posts

Leave a Reply