|
-
Oct 10th, 2002, 01:06 PM
#1
Thread Starter
PowerPoster
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
-
Oct 10th, 2002, 01:12 PM
#2
you could use SendKeys to send the keystrokes that would change it...... ?????
No guarantee it will though.....
just a thought....
-
Oct 10th, 2002, 01:16 PM
#3
Thread Starter
PowerPoster
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...
-
Oct 10th, 2002, 01:16 PM
#4
PowerPoster
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....
-
Oct 10th, 2002, 01:19 PM
#5
Thread Starter
PowerPoster
hey thanks!
Thats worth a try
-
Oct 10th, 2002, 03:26 PM
#6
PowerPoster
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....
-
Oct 11th, 2002, 12:34 AM
#7
Thread Starter
PowerPoster
-
Oct 11th, 2002, 03:55 PM
#8
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|