Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21248

Help Loading Form

$
0
0
Hi,

i am trying to load a form that has been selected by a user from a list,

Code:

If List1.ListCount = 0 Then
MsgBox "you have Not Selected a Form", vbInformation, "Open Form"
Else
Dim FM As Object
FM = List1.List(0)      '<-------------- list(0) contains the string name of the form "FMMVS"
Load FM

FM.Timer1.Interval = 1000
End If

i tried this but it doesn not open form FMMVS, is there any way i can do it? the form name could change but list(0) will always contain the form name i am trying to load

Viewing all articles
Browse latest Browse all 21248

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>