_ Public Sub New() MyBase.New(AuthenticationMode.Windows) Me.IsSingleInstance = False Me.EnableVisualStyles = True Me.SaveMySettingsOnExit = True Me.ShutdownStyle = ShutdownMode.AfterMainFormCloses End Sub _ Friend Shared Sub Main(ByVal Args As String()) Try Application.SetCompatibleTextRenderingDefault(WindowsFormsApplicationBase.UseCompatibleTextRendering) End Try MyProject.Application.Run(Args) End Sub _ Protected Overrides Sub OnCreateMainForm() Me.MainForm = MyProject.Forms.Form1 End Sub