I have two forms - frmmain, and form1
Under frmmain, I'm using a If/Then/Else statement checking a variable value.
Frmmain is the startup form.
VB Code:
Dim form1 as new form1 If Val = "1" Then 'do nothing Else form1.visible = True frmmain.visible = False End If
form1 will always show, but frmmain won't hide. I've tested this using just one form and just putting me.visible = false. I've tried me.hide, I've tried putting the code behind a timer and enabling the timer from form_load, I've tried calling a new sub from form_load, but NOTHING I do seems to work.
Does anyone know what I'm doing wrong?




Reply With Quote