Hello DawgiiStylz , your code had a few errors but the errors woulden't be that hard since now i know what i did wrong and how it works and some places its just mega easy lol . . .anyways but still here are the code errors i got in vb . . . and also thanx =) !!!
Code:
'To open files to the list
Dim dlg as New OpenFileDialog
With dlg
.MultiSelect = True
.RestoreDirectory = True
.Filter = "Executible Application(*.exe)|*.exe"
.Title = "Open Files"
End With
If dlg.ShowDialog() =
WindowsForms.DialogResult.Ok Then
For each
string in dlg.FileNames
Dim item as new ListViewItem
(else)
item.SubItems.Add(System. IO.Path.GetFileNameWithoutExtension(ele))
Listview1.Items.Add(item)
Next
'To start the selected file
If My.Computer.FileSystem.
FileExist(Listview1.FocusedItem.Text) Then
Shell(Listview1.FocusedItem.Text) 'Shell also have additional parameters if you want a few more options
End If
'form load event [Mybase.Load]
ListView1.Columns.AddRange(New ColumnHeader() {New ColumnHeader("File Path"), New ColumnHeader("File Name")})
Listview1.MultiSelect = False
The Ones In Bold Where I Got The Errors ,
Error 1 (else): Expression Expected
Error 2 (windowsforms):'WindowsForms' is not declared.It may be inaccessible due to its protection level.
Error 3 (string):'Sting' is a class type and cannot be used as an expression
Error 4 (FileExist):'fileexist' is not a member of 'Microsoft.VisualBasic.MyServices.FileSystemProxy' .
Error 5 (in): '.' expected
sooo yeah they are all very basic and not a problem at all but just wanted to tell the errors and also Thanks !!!
