QuestionListbox help

Posts 1–10 of 10 · Page 1 of 1
Listbox help
i was editing my injector and i replaced the text box with a list box so it can inject multiple Dlls( i wanted it to look like PerX)
i added a Button and coded it to browse
Code:
OpenFileDialog1.Filter = "DLL (*.dll) |*.dll|(*.*) |*.*"
        OpenFileDialog1.ShowDialog()
        Dim FileName As String
        FileName = OpenFileDialog1.FileName.Substring(OpenFileDialog1.FileName.LastIndexOf("\"))
        Dim DllFileName As String = FileName.Replace("\", "")
        Me.ListBox1.Text = (DllFileName)
but the problem is whenever i press browse and select the Dll and i click Add to List noting happens to the list, no Dlls added to the list


so does anyone know wat is happening and how i can see the Dll in the List box
Fixed:

Code:
OpenFileDialog1.Filter = "DLL (*.dll) |*.dll|(*.*) |*.*"
        OpenFileDialog1.ShowDialog()
        Dim FileName As String
        FileName = OpenFileDialog1.FileName.Substring(OpenFileDialog1.FileName.LastIndexOf("\"))
        Dim DllFileName As String = FileName.Replace("\", "")
        Me.ListBox1.Items.Add(DllFileName)
Quote Originally Posted by Lolland View Post
Fixed:

Code:
OpenFileDialog1.Filter = "DLL (*.dll) |*.dll|(*.*) |*.*"
        OpenFileDialog1.ShowDialog()
        Dim FileName As String
        FileName = OpenFileDialog1.FileName.Substring(OpenFileDialog1.FileName.LastIndexOf("\"))
        Dim DllFileName As String = FileName.Replace("\", "")
        Me.ListBox1.Items.Add(DllFileName)
omg omg thank you so much now i feel like worshiping you ahhh THank You!!! aite i will add you in the credits
Btw i have another ??? u see the the MPGH.net thing in the picture i cant find the place where i add the Hyperlink so it redirects to MPGH.net
Just put under form1.load:
Code:
System.Diagnostics.Process.Start("www.MPGH.net")
Quote Originally Posted by Lolland View Post
Just put under form1.load:
Code:
System.Diagnostics.Process.Start("www.MPGH.net")
no i am talking about when you click the hyperlink not when you start the injector
Its a "Link Label"
nvm i figured it out
Oh shit sorry.

Code:
  Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
        System.Diagnostics.Process.Start("www.mpgh.net")
    End Sub
Quote Originally Posted by Lolland View Post
Oh shit sorry.

Code:
  Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
        System.Diagnostics.Process.Start("www.mpgh.net")
    End Sub
Yeah, Deff a link label


Edit:
* For the sake of helping others and the thread, how did you solve the problem?
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us