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:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load NotifyIcon1.Icon = Me.Icon ' Just for my notify icon LoadIp() ' a function to load ip info me.visible = false ' NOT WORKING End Sub
And i also tried creating a sub main
VB Code:
Public Class Class1 Public Shared Sub Main() Dim x As New frmMain() x.Visible = False Application.Run(x) 'also attempted x.show, but this just exits End Sub End Class
Can anyone help?


Reply With Quote

