Solved

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

Posted on 2011-09-02
1
335 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: 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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 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