I have a form that I’m using as main form menu, I need three different
portions to be able to hide and view. I know how to hide acDetail section,
Heared or footer but do not know how to hide a potion of the form only, i.e.:
on detail section hide form from grid 2 to 4.
Any help, tip or comment is greatly appreciated,
Adnan
|
|
0
|
|
|
|
Reply
|
Utf
|
2/6/2008 11:56:02 AM |
|
hi Adnan,
Adnan wrote:
> I have a form that I’m using as main form menu, I need three different
> portions to be able to hide and view. I know how to hide acDetail section,
> Heared or footer but do not know how to hide a potion of the form only, i.e.:
> on detail section hide form from grid 2 to 4.
Why do you hide sections of your form dynamically? Can you explain your
needs for that?
mfG
--> stefan <--
|
|
0
|
|
|
|
Reply
|
Stefan
|
2/6/2008 12:12:41 PM
|
|
When you open My Documents folder in Windows XP, you know the way the left
side pane looks like, the one that when you click collapses and then expands
with tools. This is exactly what I am trying to do in a form. Have a menu
with command buttons (the same as the left task pane in My Documents folder)
on the left side, and then view forms, reports, etc from there. Now, my
question is, how to collapse/expands these three groups. I was hoping there
is a way to hide grid, say from grid 2 to 4, which would then hide the group
etc...
Here’s a sample of My Docs folder with left task pane….
http://www.meistermed.com/images/tutorial/isilo_folder_in_my_documents.jpg
Thank you,
Adnan
"Stefan Hoffmann" wrote:
> hi Adnan,
>
> Adnan wrote:
> > I have a form that I’m using as main form menu, I need three different
> > portions to be able to hide and view. I know how to hide acDetail section,
> > Heared or footer but do not know how to hide a potion of the form only, i.e.:
> > on detail section hide form from grid 2 to 4.
> Why do you hide sections of your form dynamically? Can you explain your
> needs for that?
>
>
> mfG
> --> stefan <--
>
|
|
0
|
|
|
|
Reply
|
Utf
|
2/6/2008 12:44:00 PM
|
|
hi Adnan,
Adnan wrote:
> When you open My Documents folder in Windows XP, you know the way the left
> side pane looks like, the one that when you click collapses and then expands
> with tools.
Ah, okay. This is not that easy. Consider this layout:
/-----------------------\
| section: Header |
*-----------------------*
| section: Detail |
| /--------\ /--------\ |
| | Pane 1 | | Pane 2 | |
| \--------/ \--------/ |
| |
*-----------------------*
| section: Footer |
\-----------------------/
You may implement Pane 1 and 2 as subforms and use [Pane 1].Visible =
False to hide the left pane.
But you have to resize Pane 2 manually, e.g.
Private Sub HidePane1()
Pane1.Visible = False
Pane2.Left = Pane1.Left
Pane2.Width = Pane2.Width + Pane2.Left - Pane1.Left
End Sub
mfG
--> stefan <--
|
|
0
|
|
|
|
Reply
|
Stefan
|
2/6/2008 12:59:50 PM
|
|
You'll need to identify the controls within the "grids" you want to hide and
hide or reveal them individually.
<air code>
Select Case
Case HideGroupONE
Me.Control1.Visible = False
Me.Control2.Visible = False
Me.Control3.Visible = False
Case HideGroupTWO
Me.Control4.Visible = False
Me.Control5.Visible = False
Me.Control6.Visible = False
......
End Select
</air code>
There are other techniques you can employ, but they will all involve
managing each control in a "grid"
George
|
|
0
|
|
|
|
Reply
|
George
|
2/6/2008 3:45:49 PM
|
|
Stefan/George,
Thanks for your response, the code works but is still not what I am looking
for, this code hides the controls but does not shift the other controls
up/down as needed as it shows on 'My Documents' folder left pane.
"George" wrote:
> You'll need to identify the controls within the "grids" you want to hide and
> hide or reveal them individually.
>
> <air code>
> Select Case
> Case HideGroupONE
> Me.Control1.Visible = False
> Me.Control2.Visible = False
> Me.Control3.Visible = False
> Case HideGroupTWO
> Me.Control4.Visible = False
> Me.Control5.Visible = False
> Me.Control6.Visible = False
> .....
> End Select
> </air code>
>
> There are other techniques you can employ, but they will all involve
> managing each control in a "grid"
>
> George
>
|
|
0
|
|
|
|
Reply
|
Utf
|
2/7/2008 5:01:01 PM
|
|
hi Adnan,
Adnan wrote:
> Thanks for your response, the code works but is still not what I am looking
> for, this code hides the controls but does not shift the other controls
> up/down as needed as it shows on 'My Documents' folder left pane.
My code gives you an example of how to do it. Where's the problem?
mfG
--> stefan <--
|
|
0
|
|
|
|
Reply
|
Stefan
|
2/8/2008 9:16:35 AM
|
|
Stefan,
I am using a tree view method instead.
You code is fine but then I have to have another code to shift the other
panes (up/down), etc… so I figured I use tree view.
Again, I do appreciate your time and help!
Adnan
"Stefan Hoffmann" wrote:
> hi Adnan,
>
> Adnan wrote:
> > Thanks for your response, the code works but is still not what I am looking
> > for, this code hides the controls but does not shift the other controls
> > up/down as needed as it shows on 'My Documents' folder left pane.
> My code gives you an example of how to do it. Where's the problem?
>
> mfG
> --> stefan <--
>
|
|
0
|
|
|
|
Reply
|
Utf
|
2/8/2008 1:45:04 PM
|
|
|
7 Replies
192 Views
(page loaded in 0.14 seconds)
Similiar Articles: Show / hide design grid - microsoft.public.access.queries ...How to: Show or Hide the Grid When you design a form, use the grid to align controls easily and precisely. opening document has gridlines how do I remove them - microsoft ...... On the drawing toolbar, click Draw button, choose grid ... 2/4/2010 3:21:01 PM ... How do I hide the list of recent word documents ... Form background grid size - microsoft.public.access.forms ...Access 2007: On a form, in design mode, the background grid dot spacing is too large. How do I change it to a smaller dot pattern? ... Bottom Border of Grid - microsoft.public.mac.office.excel ...Show / hide design grid - microsoft.public.access.queries ... The grid cannot be located by ... Form Always on Bottom - microsoft.public.access.forms... more than one way to ... How to display a form and hide the rest. - microsoft.public.access ...How Do I Hide Half Of A Form And When A Command Button Is Clicked I Show The Rest Of The Form?? How To Hide Form Instead Of Unload Form When I Click On The Close Button [x] Hide ribbon event not working - microsoft.public.access.forms ...microsoft.public.access.forms - page 2 Hide ribbon event not working esn 11 1856 I'm terrible with VBA so this might be something really simple. Using code to hide format of form field until needed. - microsoft ...How to Show/Hide form fields whenever I select/unselect a checkbox ... How to Show/Hide form fields whenever I select/unselect a checkbox ... 2) Put the following code ... How to Hide Visual Basic Editor (VBE) Window Programmatically ...How to Hide Visual Basic Editor (VBE) Window Programmatically ... 4/4/2007 2:51:47 AM Header: Report as Spam ... Author(s) Dev Ashish: Programmatically close the Visual ... Number grids - microsoft.public.excel.miscHello, I use EXCEL 2003. I'm trying to apportion some costs to optimise returns. I have managed to work out how to do it for 2 or 3 variables and use a grid form ... Show/Hide Combo box - microsoft.public.access.formsHi Guys, Does anyone know the syntax to hide a combo box on a form if it is opened in edit mode? I am not sure if I should hide the combo by d... How to Make Grid Forms | eHow.comHow to Make Grid Forms. Knowing how to make a Data Grid View Form using ... How to Insert in a Grid View; How to Hide Autogenerated Columns; How to Create and Edit Forms ... DataGrid101: Using Windows.Forms DataGrid - CodeProjectTutorial on the usage of Windows.Forms.DataGrid; Author ... Visual Studio .NET comes with an out-of-the-box grid ... If we want to "hide" a column, we don't map it to any ... Sencha Docs - Ext JS 4.0 - HTML5 Framework for Desktop and Mobile ...Ext JS 4.0 API Documentation from Sencha. Class documentation, Guides and Videos on how to create Javascript applications with Ext JS 4 Microsoft Dynamics CRM 4.0 - Unleashed: Show / Hide CRM Form SectionThe section hidden with this techinique does showup when Case is resolved and Case Form is read-only. Is there any solution to this? Tag: CRM 4.0, Hide section ... How to Hide DataGrid Columns | eHow.comDatagrids are controls that hold data in grids like a spreadsheet. They can be used in both Windows forms and websites. The DataGrid is much more than just a table ... 7/18/2012 4:36:56 PM
|