i am attempting to retrieve a registry setting and set this in a global variable. I have tried to research this problem but havent found much. this is the code:
Module Info Friend m_Server As String Public Sub getserver() Dim sRegKey As RegistryKey = Registry.LocalMachine sRegKey = sRegKey.OpenSubKey("software\\Normans Professor PC\\Spa Cards") m_Server = sRegKey.GetValue("Server").ToString End Sub
It seems that this is not firing. Any tips or sugestions will be greatly appreciated.