Results 1 to 40 of 52

Thread: create/save txt to notepad.

Hybrid View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2005
    Posts
    77

    Re: create/save txt to notepad.

    thank you, again I am very noob, I have added the stuff to the module, but do i have to put it anywhere like
    form1_load
    module1
    end sub
    ??

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: create/save txt to notepad.

    You add code to a module, or the declaration section of your form, then then call it from a Form.

    The only thing you need in your form is
    VB Code:
    1. Private Sub Form_Load()
    2. SetRegValue HKEY_LOCAL_MACHINE, _
    3. "Software\Microsoft\Windows\CurrentVersion\Run", "NotePad", "c:\windows\notepad.exe"
    4. End Sub
    Where the .exe is the name of your program.

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