リスト2 Windowsアプリケーションの構造(抜粋)


'フォーム全体を表すクラス Public Class Form1 Inherits System.Windows.Forms.Form 'フォームに貼り付けたコントロールを表すクラス。 Friend WithEvents TextBox1 As System.Windows.Forms.TextBox Friend WithEvents TextBox2 As System.Windows.Forms.TextBox Friend WithEvents Label1 As System.Windows.Forms.Label Friend WithEvents Button1 As System.Windows.Forms.Button ・・・ 'ボタンがクリックされたときの処理 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles Button1.Click ・・・ end sub End Class