Create Registry Key

blahblahboring
07-29-2004, 06:05 AM
i want to create a registry key in the users 'Run' folder, this is what ive got so far:

Dim f As New Security.Permissions.RegistryPermission(Security.Permissions.RegistryP ermissionAccess.Create, "HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\Windows\CurrentUser\Run\MyProgram")

ive got no idea how to call this function.

please help

John
07-29-2004, 07:01 AM
You need to use the RegistryKey Class.

Here is an example and explination from MS:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfMicrosoftWin32RegistryKeyClassTopic.asp

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum