ブラウズ ボタンを作成したいのですが、プログラムを検索したときにclicked ok
(TextBox
既に取得済みです)、選択したプログラムを別のボタンで開始したいと考えています。
どうやってやるの?
これは私がすでに持っているコードです:
Public Class Form1
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Using a As New OpenFileDialog()
If a.ShowDialog() = DialogResult.OK Then
Me.TextBox1.Text = a.FileName
End If
End Using
End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Using b As New OpenFileDialog()
If b.ShowDialog() = DialogResult.OK Then
Me.TextBox2.Text = b.FileName
End If
End Using
End Sub
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
Using c As New OpenFileDialog()
If c.ShowDialog() = DialogResult.OK Then
Me.TextBox3.Text = c.FileName
End If
End Using
End Sub
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
Using d As New OpenFileDialog()
If d.ShowDialog() = DialogResult.OK Then
Me.TextBox4.Text = d.FileName
End If
End Using
End Sub
End Class