Groups | Blog | Home
all groups > dotnet windows forms > may 2007 >

dotnet windows forms : Start-up from Sub Main problem


John
5/6/2007 3:54:18 PM
Hi

I have created below class with a Sub Main to use for start-up. Problem is
when I go into project->properties->Application and drop down the 'Startup
form', my class isn't listed so I can't select it. How can I set the app to
use Sub Main as the starting point?

Thanks

Regards


Friend Class clsAppManager

<STAThread()> _
Shared Sub Main()
Application.Run(New frmMyForm())
End Sub

End Class

Bryan Phillips
5/6/2007 5:28:06 PM
Uncheck "Enable Application Framework" and you will be able to select
"Sub Main".

You will have to manually add code for the functionality you lose by
turning it off.

--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com
Web Site: http://www.composablesystems.net



[quoted text, click to view]
AddThis Social Bookmark Button