CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2002
    Posts
    72

    Rename Registry Key

    What is the simplest vb code method for renaming a registry key?

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: Rename Registry Key

    Is this for your VB Program's settings or something else¿
    Why do you want to do it¿

  3. #3
    Join Date
    Jul 2002
    Posts
    72

    Re: Rename Registry Key

    It is for my VB program settings. The reason I need to do it is that I am changing the name of an application and would also like to change it in the registry without current users loosing their current settings.

  4. #4
    Join Date
    Sep 2001
    Location
    Québec, Canada
    Posts
    1,923

    Re: Rename Registry Key

    After saving the new settings with a new application name, use the DeleteSetting() function and only pass the first parameter, it will delete all the application key and subkey.

    JeffB
    Last edited by JeffB; January 23rd, 2005 at 04:46 PM.
    CodeGuru VB FAQ Visual Basic Frequently Asked Questions
    VB Code color Tool to color your VB code on CodeGuru
    Before you post Importants informations to know before posting

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

Featured