❓ VB Coders Can you help me!
Error Message
'Add' is not a member of 'System.Array'. How to Fix?
'Remove' is not a member of 'System.Array'. How to Fix?
Warning Message
property 'ForeColor' shadows an overridable method in the base class 'TabControl'. To override the base method, this method must be declared 'Overrides'. C:\Documents and Settings\lutchie\Local Settings\Application Data\Temporary Projects\CFHex Injector\Ghost Theme.vb 2613 21 CFHex Injector
'Add' is not a member of 'System.Array'. How to Fix?
Code:
Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk
Dim FileName As String = OpenFileDialog1.FileName.Substring(OpenFileDialog1.FileName.LastIndexOf("\"))
Dim DllFileName As String = FileName.Replace("\", "")
GhostListBoxPretty1.Items.Add(DllFileName)
dlls.Add(DllFileName, OpenFileDialog1.FileName)
End Sub
Code:
If GhostListBoxPretty1.SelectedItem >= 0 Then
OpenFileDialog1.Reset()
dlls.Remove(GhostListBoxPretty1.SelectedItem)
For i As Integer = (GhostListBoxPretty1.SelectedItems.Count - 1) To 0 Step -1
Dim i2 As Integer = i + 2
GhostListBoxPretty1.Items.Remove(GhostListBoxPretty1.SelectedItems(i))
Next
End If
property 'ForeColor' shadows an overridable method in the base class 'TabControl'. To override the base method, this method must be declared 'Overrides'. C:\Documents and Settings\lutchie\Local Settings\Application Data\Temporary Projects\CFHex Injector\Ghost Theme.vb 2613 21 CFHex Injector
