Results 1 to 8 of 8

Thread: NotePad Font.

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    NotePad Font.

    hi,

    If I set font in notepad to say tahoma, then whenever I open any file in Notepad, it displays it using this font.okay?

    now I am opening a file in notepad using shellexecute from VB...and I want to change the font to say arial, how do I do it?


    Any help??


    Thanks

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    you could use SendKeys to send the keystrokes that would change it...... ?????
    No guarantee it will though.....
    just a thought....
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    hi

    Thanks for reply....but actually that would be quite cumbersome and error prone...becuase I have just given an example abt fixed fontnames...they would keep chaning depending on other criterias...I was hoping there would some api for it...

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    After searching, the only method I have found mention would to be to try the keys in the registry :

    [HKEY_CURRENT_USER\Software\Microsoft\Notepad]
    "lfWeight"=dword:00000190
    "lfFaceName"="Arial"
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089
    hey thanks!

    Thats worth a try

  6. #6
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Originally posted by veryjonny
    hey thanks!

    Thats worth a try

    Did you get it to work?
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  7. #7

    Thread Starter
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    YES!!!

    Thanks a heap, James.

  8. #8
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Re: YES!!!

    Originally posted by veryjonny
    Thanks a heap, James.
    No problem...
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

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