Font Settings Save to Database in C# windows application

Unknown | 2:01 AM |

private void btnfont_Click(object sender, EventArgs e)
        {
            try
            {
                if (fontDialog1.ShowDialog() == DialogResult.OK)
                {
                    Font font = fontDialog1.Font;


                    TypeConverter tc = TypeDescriptor.GetConverter(typeof(Font));
                    string fontString = tc.ConvertToString(font);

                 
                    txtFont.Text = fontString;
                }
            }
            catch (Exception ex)
            {
                Utils.LogHandler.HandleError(ex);
            }
        }

Category:

About http://dotnetvisual.blogspot.in/:
DOT NET TO ASP.NET is a web application framework marketed by Microsoft that programmers can use to build dynamic web sites, web applications and web services. It is part of Microsoft's .NET platform and is the successor to Microsoft's Active Server Pages (ASP) technology. ASP.NET is built on the Common Language Runtime, allowing programmers to write ASP.NET code using any Microsoft .NET language. create an application very easily ....