Solved

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

Posted on 2011-09-02
1
334 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C# MVC Insert Multiple Row into DB 2 60
SSIS On fail action 5 48
Convert Ctime to date time in textfile? 7 58
itextsharp with c# 3 18
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled

679 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