//For C# Application form FontDialog fontName = new FontDialog(); fontName.ShowDialog(); textBoxName.BackColor = fontName.Color;