List1.Visible - what am I missing 
Author Message
 List1.Visible - what am I missing

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



Mon, 25 Feb 2002 03:00:00 GMT  
 List1.Visible - what am I missing
Are you sure that the list is simply not at the top of the ZOrder? Try
adding List1.Order 0 after the visible statement.

--

Randy Birch, MVP Visual Basic

http://www.mvps.org/vbnet/
http://www.mvps.org/ccrp/

Please correspond only using the newsgroups so all can benefit.


| 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
|
|
|
|



Mon, 25 Feb 2002 03:00:00 GMT  
 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



Tue, 26 Feb 2002 03:00:00 GMT  
 List1.Visible - what am I missing
This is my main #1 primary gripe about the app wizard!  Nobody should ever
(well, almost ever) use "Dim X as New Y".

People are forever creating invisible instances of frmMain and wondering why
manipulating the controls on them has no visible effect.

Jim Deutch
MS Dev MVP

Quote:

>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



>> 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



Fri, 01 Mar 2002 03:00:00 GMT  
 List1.Visible - what am I missing
Touch

--

Randy

Jim Deutch
| This is my main #1 primary gripe about the app wizard!  Nobody should ever
| (well, almost ever) use "Dim X as New Y".
|
| People are forever creating invisible instances of frmMain and wondering
why
| manipulating the controls on them has no visible effect.
|
| Jim Deutch
| MS Dev MVP



Sat, 02 Mar 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Access Runtime - Am I Missing Something?

2. AM I missing something - Sum and Cumulative Sum

3. What am I missing?

4. What am I missing in this error handler?

5. What Am I Missing?

6. What am I missing?

7. VBA For Dummies --- Am I missing something here?

8. shared variable not working what am I missing?

9. What am I missing?

10. Delegates - What am I missing???

11. What am I missing here

12. Am I missing something?

 

 
Powered by phpBB® Forum Software