No worries - at least you're trying. (Some people seem to expect you to write their projects for them
)
The value name is the second parameter "vSubKey" inwhich (originally) referencesvb Code:
RegSetValueEx lngKeyHandle, vSubKey, 0&, REG_DWORD, 25, 4vb Code:
vSubKey = "Software\Deftech\CodeLibrary\2.0"
Actually, I've just spotted a flaw in my previous post. RegSetValueEx expects a pointer to a variable, not the property of the form directly. So to save the values you have to do:
vb Code:
Dim FrmLeft as long 'etc 'etc... FrmLeft = Form1.Left 'etc 'etc... RegSetValueEx lngKeyHandle, "Left", 0&, REG_DWORD, FrmLeft, 4 'etc 'etc...




)
. RegSetValueEx expects a pointer to a variable, not the property of the form directly. So to save the values you have to do:
Reply With Quote