πŸ™‚ [HELP]DLL path = Listbox...

Posts 1–7 of 7 Β· Page 1 of 1
πŸ™‚ [HELP]DLL path = Listbox...
*Codes for..
Q= how can I put the (browsed?) dll to listbox1?
= code: if i clicked the browse for the dll again, the selected dll will be added in the listbox1.Thank you, help me again)
First add a openfiledialog
then under button1 click put-
Code:
 Try
    OpenFileDialog1.ShowDialog()
    TextBox1.Text = OpenFileDialog1.SelectedPath
    Listbox1.items.add(Textbox1.text)
Catch ex As Exception
    'Do Nothing
End Try
Just select the .dll and the filepath should show in listbox1
Thanks, i'll try it.

how can i set that it will just browse the .dll file(s)?

Ohh..Im sorry bombsaway707, i am wrong..the line here=code: if i clicked the browse for the dll again, the selected dll will be added in the textbox.Thank you, help me again should be code: if i clicked the browse for the dll again, the selected dll will be added in the listbox1.Thank you, help me again
Wooot wtf triple post + wow it's like your 7th thread here
pixipixel, can u help me with my first thread i think, the one name "[HELP=Problem]INjector..." , sorry for 3ple posting^^
try this.


Code:
 On Error Resume Next
       
        OpenFileDialog1.ShowDialog()
        Dim DLLF_Name
        Dim FileNamex As String
        FileNamex = OpenFileDialog1.FileName.Substring(OpenFileDialog2.FileName.LastIndexOf("\"))
        DLLF_Name = FileNamex.Replace("\", "")
        Me.ListBox1.Items.Add(DLLF_Name)
Try this
Code:
 On Error Resume Next
        Dim OpenFiledialog1 As New OpenFileDialog
        With OpenFiledialog1
            .Filter = "DLL's (*.dll)|*.dll"
            .Title = "Please select a file..."
            .CheckFileExists = True
            .CheckPathExists = True
        End With
        If OpenFiledialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then
            ListBox1.Items.Add(OpenFiledialog1.FileName)
        End If
Posts 1–7 of 7 Β· Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us