Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 5th, 2004, 12:51 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default Visible property glitch

Hello,

I'm using Visual Studio .NET 2003. I have a form with several data grids, where the Visible property was set to false. I tried to set it to true, but it still says false in property window. I tried removing the visible property, but it still says false in the property window. I shut down the app, and brought it back up, and it says false with the property written back into the HTML. For some reason, it won't let me change the visibility. Anybody encounter this before? I'm definitely not going to code it into my application.

Thanks,

Brian
__________________
Brian
 
Old May 5th, 2004, 01:29 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

OK, apparently what was happening is that the panel that encompasses all of these controls was controlling the visible property so that when the panel was false, the data grid had to be false. When I changed the panel to true, the visibility could be false or true.

It shouldn't be doing that, right?
 
Old May 5th, 2004, 01:36 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I dono- does it happen to other controls in the panel? It makes sense to me that if a panel is not visible it's members wouldn't be.


Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old May 5th, 2004, 02:36 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Yes it does actually... it does make sense to a point, but the problem is that when you set it to true, it doesn't automatically revert all of the visibilities back to true.

I ended up in the page load setting the appropriate panel visible to be true and the rest false.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
Button does not retain visible property mhshpk ASP.NET 2.0 Professional 2 July 18th, 2007 11:24 AM
Word.ApplicationClass Visible Property danielv General .NET 0 January 11th, 2006 12:50 PM
Setting visible property on a report field tnzabo Access 3 July 21st, 2005 11:30 AM
Visible row property Louisa VB.NET 2002/2003 Basics 0 October 29th, 2004 04:26 AM
Visible property of controls in data list acko ASP.NET 1.x and 2.0 Application Design 1 December 9th, 2003 10:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.