|
|
|||||
|
Basics More Complex Examples
|
Open a folder with Process control in vb.netProcesses
Private Sub
Form1_Load(ByVal sender
As System.Object,
ByVal e As System.EventArgs)
Handles MyBase.Load Create a new Sub and call it MyProcess. We are going to use our process to open any folder(we have access to) on our computer. To do this we are going to make use of Windows Explorer and simply pass the folders name to it. To do that we have to create the following commands for our process. Sub
MyProcess() When we push our button we want our FolderBrowser to open so that we can select our folder. Then only if the FolderBrowserDialog returns "Ok" we will call our sub called MyProcess and run the commands in it. Double click on your button to open its event handling procedure. Private Sub
Button1_Click(ByVal sender
As System.Object,
ByVal e As System.EventArgs)
Handles Button1.Click Remenber to put all of
the above code inside your Class. Between
Public Class
Form1 and End Class.
If you liked this article then
Please Thumb This Up with a short review -
Email us at: info@pro2visual.com
|
Popular Articles Moving a borderless form in vb.net Link Progress Bar with Timer in vb.net How to open a folder using the process control |
|||
|
|