'PCComm'不是Application.Designer.vb

时间:2016-04-26 11:43:22

标签: .net vb.net

我不知道为什么在自动生成的文件中发生此错误。有人可以调查并帮助我吗?

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

1 个答案:

答案 0 :(得分:0)

尝试将错误行编辑为:

Me.MainForm = Global.PCComm.frmMain

这对我有用。