我不知道为什么在自动生成的文件中发生此错误。有人可以调查并帮助我吗?
Option Strict On
Option Explicit On
Namespace My
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.PCComm.PCComm.frmMain 'this is where the error occurs
End Sub
End Class
End Namespace
答案 0 :(得分:0)
尝试将错误行编辑为:
Me.MainForm = Global.PCComm.frmMain
这对我有用。