OpenSubKey VB.NET Two Backslashes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • alowe

    OpenSubKey VB.NET Two Backslashes

    I'm posting this so others can avoid a headache.

    The OpenSubKey function of the RegistryKey object in .NET does require
    two backslashes between keys on some machines (ex. "Software\
    \Microsoft\\Off ice") even with VB.NET.

    I came accross an issue where my development and test machines did not
    require the double slashes, but the client's machine did. The
    application was written in VB with VS 2005. I'm not sure what was
    different about the client's computer, but suspect it may have been an
    OS difference.
  • Stephany Young

    #2
    Re: OpenSubKey VB.NET Two Backslashes

    Scary!!!!!!!!


    "alowe" <aarondlowe@gma il.comwrote in message
    news:9b8c59ee-7833-41de-b440-1849d0530656@d2 1g2000prf.googl egroups.com...
    I'm posting this so others can avoid a headache.
    >
    The OpenSubKey function of the RegistryKey object in .NET does require
    two backslashes between keys on some machines (ex. "Software\
    \Microsoft\\Off ice") even with VB.NET.
    >
    I came accross an issue where my development and test machines did not
    require the double slashes, but the client's machine did. The
    application was written in VB with VS 2005. I'm not sure what was
    different about the client's computer, but suspect it may have been an
    OS difference.

    Comment

    • Cor Ligthert[MVP]

      #3
      Re: OpenSubKey VB.NET Two Backslashes

      In which version of VB.Net, this is the name for the versions 2002 and
      2003, do you mean one of those?


      "alowe" <aarondlowe@gma il.comschreef in bericht
      news:9b8c59ee-7833-41de-b440-1849d0530656@d2 1g2000prf.googl egroups.com...
      I'm posting this so others can avoid a headache.
      >
      The OpenSubKey function of the RegistryKey object in .NET does require
      two backslashes between keys on some machines (ex. "Software\
      \Microsoft\\Off ice") even with VB.NET.
      >
      I came accross an issue where my development and test machines did not
      require the double slashes, but the client's machine did. The
      application was written in VB with VS 2005. I'm not sure what was
      different about the client's computer, but suspect it may have been an
      OS difference.

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: OpenSubKey VB.NET Two Backslashes

        "Cor Ligthert[MVP]" <notmyfirstname @planet.nlschri eb:
        In which version of VB.Net, this is the name for the versions 2002 and
        2003, do you mean one of those?
        The OP states "The application was written in VB with VS 2005".

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

        Comment

        • Cor Ligthert[MVP]

          #5
          Re: OpenSubKey VB.NET Two Backslashes

          >
          The OP states "The application was written in VB with VS 2005".
          >
          --
          You are right, and I have looked for it twice. Probably not awake at that
          time.

          Sorry

          Cor

          Comment

          Working...