Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7495819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:20:28+00:00 2026-05-29T18:20:28+00:00

Hey all i am trying to delete a key from the registery but i

  • 0

Hey all i am trying to delete a key from the registery but i cant seem to get it correct.

My code looks like this:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Dim tmpKey As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
    Dim foundKey As RegistryKey = My.Computer.Registry.LocalMachine.OpenSubKey(tmpKey, True)

    If Not (foundKey Is Nothing) Then
        foundKey.DeleteSubKey("Billy")
    Else
        MsgBox("not found")
    End If
End Sub

The tree looks like this:
1

It keeps saying it can not find that key… Any help would be great.

David

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T18:20:30+00:00Added an answer on May 29, 2026 at 6:20 pm

    I believe you are trying to delete a value(“Billy”) in the subkey(“Run”).

    If so, you would need to use the DeleteValue() method instead of DeleteSubKey().

    If Not (foundKey Is Nothing) Then
        foundKey.DeleteValue("Billy")
    Else
        MsgBox("not found")
    End If
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey all i am trying to get the value from this code: <DIV id=lcm_simlive_countdown>00
Hey all i am trying to get my array in the correct format to
Hey all i am trying to get the value from the label here in
Hey all i am trying to get my code below to work in order
Hey all i am trying to get my jquery code below to work: function
Hey all i am trying to figiure out why my code is not triggering
Hey all, i have a problem with trying to get 2 forms to close
Hey guys, I am just trying to pull all the records from my database
Hey all i am trying my best to get the follow query: SELECT Client,
Hey all I'm trying to get a feel for angular and have ran into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.