Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Common Dialog Box - FONT

Status
Not open for further replies.

sijukumar

Programmer
Nov 28, 2001
3
IN
hai,

i have some clarification regarding Common Dialog Box.

I want to set the default Font and Size while opening a Font Dialog Box. For eg- If I open the dialog Box from my control, say from my Grid, I want the default font and size to be my Grid's font and size.

Sijukumar
 
Try this:
Code:
CommonDialog1.Flags = cdlCFBoth
CommonDialog1.FontName = grid1.FontName
CommonDialog1.ShowFont
Let me know if this helps

Check out FAQ222-2244
'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top