剛學習使用vs2010,解壓了vb的示例,接著打開了vb samples\application samples\appevents\my events\application.designer.vb發現了這段代碼,請教什么意思:
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.NetworkEvents.MainForm
End Sub
End Class
End Namespace
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/123888.html
標籤:VB基礎類
