추가 정보 :VB .NET 홈페이지() WindowsApplication에서
- 임 주를 정의하기 위해 어디 볼 수 없습니다 비주얼 스튜디오 2008 (VB)
- 내가 C#
경험이를 사용하여 하위 여기에 내 문제가 있습니다 :
Visual Studio에서 WindowsApplication을 만들었습니다. 양식을 만든 후 '코드보기'를 클릭하면 다음과 같은 내용이 나타납니다.
Public Class Form1
End Class
wups 여기에서 Main Sub는 어디에 있으며 디자이너는 코드를 생성합니까?
다음 문제는 Form1
을 삭제하면 MainForm
이 설정되지 않았다는 오류가 발생한다는 것입니다. 더블 오류를 클릭하면 나와는 다음과 같이 보이는, Application.Designer.vb
로 연결 :
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:2.0.50727.4927
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Namespace My
'NOTE: This file is auto-generated; do not modify it directly. To make changes,
' or if you encounter build errors in this file, go to the Project Designer
' (go to Project Properties or double-click the My Project node in
' Solution Explorer), and make changes on the Application tab.
'
Partial Friend Class MyApplication
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
Public Sub New()
MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
Me.IsSingleInstance = False
Me.EnableVisualStyles = True
Me.SaveMySettingsOnExit = True
Me.ShutdownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
End Sub
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
Protected Overrides Sub OnCreateMainForm()
Me.MainForm = Global.WindowsApplication1.Form1
End Sub
End Class
End Namespace
, 그렇게 할 수있는 방법은 무엇입니까?
프로젝트 + 속성, 응용 프로그램, "응용 프로그램 프레임 워크를 사용"을 선택 취소. 이제 "시작 객체"설정을 변경할 수 있습니다. –
@ 한스 왜 대답이 아닌가? –