掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
WithEvents で配列やハッシュを使うには? (ID:125477)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
WithEventsで配列やハッシュを使おうとするとエラーがおきます Friend WithEvents Button(0) As System.Windows.Forms.Button Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles MyBase.Load MsgBox("新しいボタン") Me.Button(0) = New System.Windows.Forms.Button Me.SuspendLayout() Me.Button(0).Location = New System.Drawing.Point(0, 0) Me.Button(0).Name = "Button0" Me.Button(0).Size = New System.Drawing.Size(80, 32) Me.Button(0).TabIndex = 0 Me.Button(0).Text = "Button0" Me.Controls.Add(Me.Button0) End Sub のようにしたいのですがどうしたらよいでしょうか?
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2020 Takeshi Okamoto All Rights Reserved.