473,320 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

two panels

JJ
Hi,

How can I lay one panel over the other? I want to switch back and forth
between panels that overlap. If I do this and make one invisible can I still
load controls with data if that particular panel is invisible?

Thanks,

JJ
Nov 19 '05 #1
2 3580
I'm not sure that I understand you but here goes.

If you have two panels, and only one is open at any one time, then something
triggers that event (one to open, one to close).
So, in that Sub (or whatever)

Sub page_load()

Protected withEvents panel1 as panel
'Your controls on your form

'populate values in controls regardless of panels
panel1.visible = true 'show panel 1 first

End Sub

Sub panel1close_click()
' I use image buttons sometimes with a '-' or '+' to open and close panels
panel1.visible = false
panel2.visible = true
'populate values in panel 2 controls in change needed
End Sub

Sub panel1open_click()
panel1.visible = true
panel2.visible = false
'populate values in panel 1 controls in change needed
End Sub

and so forth....

By default , hiding a panel hides its controls. But they are on the panel
(form), either placed there on the form or dynamically created via something
like in the page_load.

"JJ" wrote:
Hi,

How can I lay one panel over the other? I want to switch back and forth
between panels that overlap. If I do this and make one invisible can I still
load controls with data if that particular panel is invisible?

Thanks,

JJ

Nov 19 '05 #2
WJ
"JJ" <JJ@discussions.microsoft.com> wrote in message
news:26**********************************@microsof t.com...
Hi,

How can I lay one panel over the other? I want to switch back and forth
between panels that overlap.
One way to do it is to use an Html/Table control as the place holder of the
overlapped "Panel" controls.

Example: Follow these steps:

1. Drop a Html/Table control with 1-row and 1-column. Set this only row
horizontal/vertical properties to be left/top.
2. Drop a Web/Panel control inside the Html Table control. The Panel should
be aligned to top and left most automatically
3. Position the cursor to the end of Panel1, do not use <Enter> key.
4. Drop another Web/Panel control right where the cursor is.
5. Set "Horizontal" alignment property of both Panels to Left.
6. Create a Button control that toggles Panel1 and 2 back and forth using
their "Visible" property. While doing this, observe each panel position,
each should occupy the same spot each time it is "visible".
If I do this and make one invisible can I still
load controls with data if that particular panel is invisible?


Yes. The "Visible" property only causes the controls to be hidden from the
Page. You can still access them and set their properties in code-behind.

John Webbs
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: PZ | last post by:
OSS 2005 The First International Conference on Open Source Systems Genova, July 11 - 15, 2005 CALL FOR PANELS http://oss2005.case.unibz.it Submissions of panels are solicited for the "First...
0
by: PZ | last post by:
OSS 2005 The First International Conference on Open Source Systems Genova, July 11 - 15, 2005 CALL FOR PANELS http://oss2005.case.unibz.it Submissions of panels are solicited for the "First...
4
by: BBM | last post by:
I'm trying to set up a form with two panels divided by a Splitter control. I can make the Splitter work in the situations described in the documentation (Listbox or TreeView on left w/Dock set to...
1
by: pfnus | last post by:
Hi, I want to display different forms when the buttons are clicked and all the forms are having different controls on it. So instead of adding new windows forms to the project, i enlarged the...
3
by: Jonas | last post by:
Hi! I have aspx-page where I use multiple panels to make room for more controls than would otherwise fit onto one page. On submit, the controls on all panels, visible or not, should be validated...
1
by: Demetri | last post by:
I'm trying to determine if we want to use panels or user controls for our pages. Our primary concern is performance, page loading and posting speed. To illustrate my question, lets use the...
0
by: ohadasor | last post by:
Hello, I'm using .NET Framework 2.0. I'm creating several panels, one above the other, with splitters between them. I'm using Splitter and not SplitContainer, because the latter is such a big...
0
by: aarepasky | last post by:
I am using ASP.NET 2.0 and C#. I am creating a page with multiple panels on it. In the panels are user controls that have the screen layout to input data. I only show one panel at a time by...
1
by: Ben | last post by:
Hi We have a number of Panels on our windows form, we have controls inside and outside of the panels. I am having problems tabbing between controls, it appers to be when the controls are...
3
by: Andrea Gasperi | last post by:
Hi there not sure if this is the right place but i'm proud to use for the first time the "Managed Newsgroups" feature of my brand new MSDN subscription :-) So here is the problem. I've...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.