title: Using My namespace in a module
body: <p>I tried to use MY namespace in a module in VB.NET , but it says "My isn't declared ..." Using MY namespace would save a lot of time , but can I use it in a module ? </p>
  
  <pre><code>Imports System.Windows.Forms
  
  Public Module Entry_Module
      Sub Main()
          My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\Currentversion\Run\", "MyApp", application.executeablepath, RegistryValueKind.String)
      End Sub
  End Module
  </code></pre>
  
  <p>I'm adding my application to startup , the application i have has no Form but modules instead . So How can I use my namespace in this module ? </p>