Option Strict On 'VisualBasic2008(無料版)10/29 Public Class Form1 Public Sub New() ' この呼び出しは、Windows フォーム デザイナで必要です。 InitializeComponent() ' InitializeComponent() 呼び出しの後で初期化を追加します。 Try With Me .Text = "Test" .BackColor = Color.Black .StartPosition = FormStartPosition.CenterScreen .FormBorderStyle = Windows.Forms.FormBorderStyle.FixedSingle .MaximizeBox = False .MinimizeBox = False .Width = 500 .Height = 500 End With With Me.Button1 .Width = 75 .Height = 50 .Left = 50 .Top = 250 .Text = "更新" End With With Me.Button2 .Width = 75 .Height = 50 .Left = 380 .Top = 250 .Text = "削除" End With Catch MsgBox("コード入力Miss") End Try End Sub Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form2.Show() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Form3.Show() End Sub End Class ' 'Buttonコントロールを2個,Form1に入れます 'プロジェクト(p)をクリックします 'Windowsフォームを追加します(2個)Form2とForm3 'Form2とForm3の設定は各Formでやります。(Form1と同様にできます)