Visual Basic 6.0 控件和 .NET 控件的区别后记

作者:袖梨 2022-07-02
Public Class frmTest
    Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
    Public Sub New()
        MyBase.New()
        'Windows 窗体设计器必需此调用。
        InitializeComponent()
        '调用 InitializeComponent() 后添加初始化。
    End Sub
    '窗体覆盖配置以清除组件列表。Protected Overloads Overrides Sub Dispose
(ByVal disposing As Boolean)
        If disposing Then
       If Not (components Is Nothing) Then
           components.Dispose()
       End If
        End If
        MyBase.Dispose(disposing)
    End Sub
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
    Friend WithEvents Button1 As System.Windows.Forms.Button
    
    'Windows 窗体设计器所必需。
    Private components As System.ComponentModel.Container

相关文章

精彩推荐