also wot im i doing wrong with this code?
VB Code:
Private Sub Label9_Click()
If Form1.Frame1.Visible = True Then
On Error Resume Next
With CommonDialog1
.CancelError = True
.Filter = "Text Files (*.txt)|*.txt|"
.ShowOpen
End With
Call SaveLoadListbox(List1, CommonDialog1.FileName, "load")
End If
If Form2.Frame1.Visible = True Then
On Error Resume Next
With CommonDialog1
.CancelError = True
.Filter = "Text Files (*.txt)|*.txt|"
.ShowOpen
End With
Call SaveLoadListbox(List2, CommonDialog1.FileName, "load")
End If
End Sub
something to do with my If's because when i run the program and click frame1 and load it makes me choose the list twice. Probably because i got this code messed up but i can't see where.