Solved

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

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

18 Experts available now in Live!

Get 1:1 Help Now