Hello vb.net experts :)
I am trying to program an app that resides in the system tray and I am
trying to put all my main code in sub Main(). I am getting this
errormessage at compile:
Performing main compilation...
vbc : error BC30737: No accessible 'Main' method with an appropriate
signature was found in
I have done some post searching that has mentioned setting the project
properties entry point to sub main() and I have tried that with no
luck. I have tried placing my sub just about everywhere with hopes that
the error would go away. Right now it resides right under the "Windows
Form Designer generated code" section. Here is my sub, any help is
greatly appreciated.
Public Sub Main(ByVal cmdArgs() As String)
Dim RegEntry = GetNzbDirFromReg()
Dim Verified = VerifyDir(RegEntry)
If Verified = False Then
MessageBox.Show("Can not locate your config. Please make
sure the application is installed. Exiting.", "Blah",
MessageBoxButtons.OK)
Application.Exit()
End If
' GetPaths()
If ComPath.Length < 1 Then
MenuItem16.Enabled = False
End If
If InComPath.Length < 1 Then
MenuItem17.Enabled = False
End If
foxCheck()
AddHandler t.Elapsed, AddressOf TimerFired
End Sub