I am attempting to hide my main form in VB.NET and it is not working. I was wondering if there was something wrong witht he way that i am doing it.

Here is two ways that i have tried.

VB Code:
  1. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  2.         NotifyIcon1.Icon = Me.Icon ' Just for my notify icon
  3.         LoadIp() ' a function to load ip info
  4.         me.visible = false ' NOT WORKING
  5.     End Sub

And i also tried creating a sub main

VB Code:
  1. Public Class Class1
  2.     Public Shared Sub Main()
  3.         Dim x As New frmMain()
  4.         x.Visible = False
  5.         Application.Run(x) 'also attempted x.show, but this just exits
  6.     End Sub
  7. End Class

Can anyone help?