Solved

How to save the fontname and size of a fontdialog to the settings-file.

Posted on 2011-09-02
1
330 Views
Last Modified: 2013-12-17
Dear Experts,

I have a main form called MainForm and a child form called Adjustment.
These 2 forms are seperate forms (not MDI). On the Adjustment form
I have a button for calling the fontDialog1. And a OK-button for closing
the form.

What I would like is when a user chooses a font and size in the fontdialog
on the adjustment form that after pressing the OK-button the fontname and
size will be written to the settings-file.

Who knows the answer and is willing to help me?

Greetings, Peter Kiers
0
Comment
Question by:peterkiers
1 Comment
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 36473976
You can create a user-scoped setting in your project's Settings panel (under Project->Properties->Settings). These settings will be stored per-user in each user's private App Settings directory (or Local Settings, I always forget which). Here's a nice doc describing the process:

    http://msdn.microsoft.com/en-us/library/aa730869%28v=vs.80%29.aspx
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now