|
> 私の場合は何もつかないのですが > Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load > Me.AutoScroll = True > > End Sub
以下テストコードです。 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim label As New Label label.Text = "ラベル1" label.Top = 500 label.Left = 500 Me.Controls.Add(label)
Dim panel As New Panel panel.AutoScroll = True panel.Top = 10 panel.Left = 10 Dim label2 As New Label label2.Text = "ラベル2" label2.Top = 100 label2.Left = 100 panel.Controls.Add(label2) Me.Controls.Add(panel)
Me.AutoScroll = True
End Sub
|