Change Notepad settings from VB 6.0
I have started Notepad with the Shell function.
Is there a way to change the Page Orientation, Header & Footer
Information, and the Font from within the VB program?
Or:
Can you create an instance of or object of Notepad as you can
with MS Word? How about Wordpad?
Greatful for any advice!
Thanks
Notepad or Wordpad are not com compliant
Thus you cannot instantiate them.
But you should achieve your goal reading andd changing some registry keys.
Modifying Notepad:
http://www.codeguru.com/forum/showth...hlight=notepad
Using WordPad:
http://www.codeguru.com/forum/showth...hlight=notepad
Re: Change Notepad settings from VB 6.0
You'd need to use the RegSaveKey to save keys like these. Have a look here :
http://allapi.mentalis.org/apilist/RegSaveKey.shtml
Remember also changing system wide settings are usually frowned upon...