Peter Kiers
asked on
Display the chosen fontname en fontsize of a fontdialog in a textbox, part2
Hi,
I have a button, a textbox and a fontdialog on my form.
When I click on the button the fontdialog appears
Where I can choose the fontname and size
What would is in the textbox, the size of the font
and the name of the font that I have chosen
in the fontdialog. How can I do that?
I have put an image of outlook so you see how I
want it to be.
Who knows the answer and is willing to help me?
Greetings, Peter Kiers
Example1.jpg
I have a button, a textbox and a fontdialog on my form.
When I click on the button the fontdialog appears
Where I can choose the fontname and size
What would is in the textbox, the size of the font
and the name of the font that I have chosen
in the fontdialog. How can I do that?
I have put an image of outlook so you see how I
want it to be.
Who knows the answer and is willing to help me?
Greetings, Peter Kiers
Example1.jpg
ASKER
I am going to try your code now
Peter
Peter
ASKER
It works. But when I choose Comic Sans MS and size 10 I get:
9,75 pt. Comic Sans MS
How come I get 9,75 and not 10.
Peter
9,75 pt. Comic Sans MS
How come I get 9,75 and not 10.
Peter
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great. 500 points are comming to you...
Greetings, Peter Kiers
Greetings, Peter Kiers
Open in new window
Hope that helps.