Results 1 to 3 of 3

Thread: font dialogue box

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Posts
    16

    font dialogue box

    i am trying to set my font dialogue box . when i change the text size it still reverts back to the default , any help in the code would be very helpful

  2. #2
    PowerPoster
    Join Date
    Aug 2002
    Location
    NY, NY
    Posts
    2,139
    And how do you do that???
    Roy

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Re: font dialogue box

    Originally posted by mackey
    i am trying to set my font dialogue box . when i change the text size it still reverts back to the default , any help in the code would be very helpful
    This code works fine for me:

    VB Code:
    1. 'requires CommonDialog (CDFont) and CommandButton (Command1):
    2.  
    3. Private Sub Command1_Click()
    4.   CDFont.Flags = cdlCFBoth
    5.   CDFont.FontName = Me.FontName
    6.   CDFont.ShowFont
    7.  
    8.   Me.FontName = CDFont.FontName
    9.  
    10.   Me.Refresh
    11. End Sub
    12.  
    13. Private Sub Form_Paint()
    14.   Me.CurrentY = 0
    15.   Me.Print "Wassup!?"
    16. End Sub
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width