Hey, im working on a project the moment and i need help regarding multiple forms
The project uses two forms to load data from an external file the second form (the one i need help with)
The second form has a text box on it in which the user types in the filepath of the external file then clicks on the button to add it to the list of files. I set up a message box to appear when the button is clicked to confirm when it is added but nothing happens
Can anyone help with this?
The code for the second form is below:
Imports System.Windows.Forms
Public Class DialogAdd
Dim Filepath As String
Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd_cancelLoad.Click
Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.Close()
End Sub
Private Sub cmd_AddScen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd_AddScen.Click
End Sub
End Class
And this is the code for the button that loads the second form
Private Sub cmd_Load_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd_Load.Click
DialogAdd.Show()
End Sub