Solved

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

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

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

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