I need to make it so that when a player presses a button it asks for the filepath of a certain file. Can anyone help me?
How do I open a new form in Visual Basic?
To open the form, put formName.Show() in the button click event.
However, to get the path of a file, you'll need an OpenFileDialog. To show that, just use OpenFileDialogName.ShowDialog().
Reply:In the Design, you need to click on Add Form in the Project menu. Design the new form as per your requirements.
In the Code for button_click, write:
Form1.Visible = False
Form2.Visible =True
Hope this helps,
your_guide123@yahoo.com
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment