Results 1 to 34 of 34

Thread: [RESOLVED by schoolbusdrive]Save to registry, but it doesn't!

Threaded View

  1. #1

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    [RESOLVED by schoolbusdrive]Save to registry, but it doesn't!

    I have the following code to save the forms position when it is closed, but when it runs through the Reg.bas if errors out on this line:

    Code:
    If rv <> REGISTRY_SUCCESS Then GoTo ErrorHandler
    Code:
    Dim vSubKey As String
    vSubKey = "Software\Deftech\CodeLibrary\2.0\Config"
    
    SaveRegistryValue regLong, hkeyLOCAL_MACHINE, vSubKey, "Left", Me.Left
    SaveRegistryValue regLong, hkeyLOCAL_MACHINE, vSubKey, "Top", Me.Top
    SaveRegistryValue regLong, hkeyLOCAL_MACHINE, vSubKey, "Height", Me.Height
    SaveRegistryValue regLong, hkeyLOCAL_MACHINE, vSubKey, "Width", Me.Width
    Is there something else I should be doing to make a new entry in the registry.
    The app is just for me, so I could manually enter the new keys, but I would like to know how to create them properly.
    Last edited by aikidokid; Mar 9th, 2007 at 09:13 AM.
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

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