Results 1 to 2 of 2

Thread: Creating registry keys with Visual Basic

  1. #1
    MoralesWard is offline Senior Member
    Join Date
    Dec 2009
    Posts
    176
    Rep Power
    3

    Default Creating registry keys with Visual Basic

    Get me few correct answers for that. States few footsteps wanted to do this
    Please do assist me out so that I may create the to be sorted

  2. #2
    JenkinsReed is offline Senior Member
    Join Date
    Dec 2009
    Posts
    169
    Rep Power
    3

    Default

    Produce a Visual Basic project by pressing "File" and "New Project." Drag a button from the components list on the left into the window. Double press the button to open the code editor. Paste the following:

    ' create the primary key.
    Save Setting ("TestApp", "Startup", "FirstKey", "First")

    ' write the primary key's value.
    Console. Write Line ((GetSetting("TestApp", "Startup", "FirstKey")))

    'Delete the key
    Delete Setting("TestApp", "Startup", "FirstKey")

    'Confirm that the key is gone. This will print nothing.
    Console. WriteLine(GetSetting("TestApp", "Startup", "FirstKey"))

    Press the "green arrow" in the toolbar to save and run your program. Press the button. The line "First" will emerge in the output window.

    Beware. The Registry is a significant part of the Windows operating system, and careless manipulation of the registry can result in instability and other issues.

Similar Threads

  1. Statement in visual basic
    By PowellParker in forum Programming
    Replies: 1
    Last Post: 05-27-2010, 02:29 PM
  2. Compilers C # and Visual Basic open
    By Elliot Peterson in forum Latest Hardware News
    Replies: 0
    Last Post: 11-20-2009, 10:06 AM
  3. Creating an Excel macro using visual basic
    By Freddy Smits in forum Windows XP
    Replies: 0
    Last Post: 07-01-2009, 07:22 AM
  4. Visual basic editor in word
    By Fredrick Borren in forum Windows XP
    Replies: 0
    Last Post: 07-01-2009, 07:16 AM
  5. Visual Basic Programming
    By aiantin465 in forum Programming
    Replies: 0
    Last Post: 07-05-2008, 09:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48