i have a listbox, filled with the list of every single installed program on my computer. what should i code so when i select a program from the listbox and click a button, the program will run. i tried
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
System.Diagnostics.Process.Start("ListBox1.SelectedItems")
End Sub
and then i tried:
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Shell(ListBox1.SelectedItems)
End Sub
everytime i run it, it says there is an invalid file destination
what do i Do?!?!?
please and thank you!
but that didnt work. what should i do?
(btw, i am using Microsoft Visual Basic 2010 Express Edition)


Sign In
Create Account

Back to top









