
List1.Visible - what am I missing
Thank you Randy and Ekrem for your responses. Thanks Ekrem for the example -
loaded yours & worked as expected. Looked at mine and didn't see any
differences. As I looked through code, I noticed this in the start up module
(Thank you app wizzard) :
Public fMainForm As frmMain
Sub Main()
Set fMainForm = New frmMain
Load fMainForm
Unload frmSplash
fMainForm.Show
End Sub
The actual form name is frmMain. So silly me used that name to reference
the controls. However, this little code above changes things so to access
the controls, I needed to go
fMainForm.list1.Visible ......
Referencing frmMain gives no errors, it just plain don't do anything.
Thanks again for the help ...
dale sampson
www.dalesplace.net
Quote:
> I have a VB6 sp3 project that has multiple forms(splash, options, main).
The
> main uses a Tab control (ssTab). On the 1st tab are four list boxes. On
the
> options form I want the user to be able to set/clear the visibility of
these
> list boxes. Seems straight foreward. The problem I'm having is that
> list1.visible is ALWAYS false. Even when the list is visible. Even after a
> statement list1.visible = True. Even if set to True at design time.
> I must be missing something basic here. Any thoughts about what's going
on?
> Thanks!
> dale sampson
> www.dalesplace.net