Hi i need some help with a project i'm working on.
Little explanation on it first then ill tell you where i am what i need help with and post code and maybe a screenshot.
Well its a usb launcher its supposed to launch your usb drive and also has two combo boxes for launching of programs and folders that you specify and has a mini notepad i wrote in like 5 minutes.
What i have so far:
Custom Icons
Notepad done
Buttons for program files and c drive
toolstrip with a split button for many dialog (add remove Programs/Folders.) Custom made programs built into the launcher
Code so far:
Form1.VB
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ToolStripStatusLabel1.Visible = True
ToolStripStatusLabel1.Text = "USB Drive Opened"
End Sub
Private Sub QuickPadToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles QuickPadToolStripMenuItem.Click
Form2.ShowDialog()
End Sub
Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click
End Sub
Private Sub ProgramFilesToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ProgramFilesToolStripMenuItem.Click
Process.Start("C:\Program Files")
ToolStripStatusLabel1.Visible = True
ToolStripStatusLabel1.Text = "Program Files Opened"
End Sub
Private Sub CDriveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CDriveToolStripMenuItem.Click
Process.Start("C:\")
ToolStripStatusLabel1.Visible = True
ToolStripStatusLabel1.Text = "Hard Drive Opened"
End Sub
Private Sub DirectoryToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DirectoryToolStripMenuItem.Click
FolderBrowserDialog1.ShowDialog()
End Sub
End Class
Where im stuck at
Add/Remove Programs/Folders
I want it so when you hit Add/Remove Programs/Folders it will put it into a xml file then load it into a combo box under a category or remove it based on wheter or not you hit add or remove
USB Launch Button
I dont know how to open a removeable drive or any drive without the Process.Start ("") code and i dont want it to be linked to mine i want it to be either changeable or a varible in the registry to locate a removable drive and open it
btw im very new to this so please explain it as easy as possible:P
Screenshot: