Registry writing using Vb.net

Discussion in 'Web Development and Programming' started by webkid, Mar 27, 2008.

  1. webkid

    webkid Regular Member

    Joined:
    Mar 26, 2008
    Messages:
    33
    Likes Received:
    0
    Hello

    Is it possible to write into windows registry using vb.net? If yes then how . Please give me some example.

    Thank you
     
  2. adithya

    adithya Regular Member

    Joined:
    Mar 23, 2008
    Messages:
    82
    Likes Received:
    0
    Location:
    India
    easy :D
    Code:
    My.Computer.Registry.Setvalue(path,key,value)
    
    ^^use this .....
    But i think it will work only in case of Visual Basic not VC or VC#
     
  3. Steven

    Steven Regular Member

    Joined:
    Mar 19, 2008
    Messages:
    18
    Likes Received:
    0
    Assuming you want to edit the registry on your own server, then yes. On someone elses server that is hosting your website, not likely going to happen, and/or for the clients viewing your site, if you want to edit thiers, fugetaboutit... VB.NET is a server side lanuage, which means you can not communicate with the client-side after runtime begins. (However with webservices and AJAX it is now possible to do partial page refreshes allowing communication after runtime) Regardless, you can't do it.... but on your own server(Why you would want to do that I don't know) Yes I guess you can if what adithya said works, never tried it myself...
     

Share This Page