Hidding and Moving Controls

bokarinho

Registered User.
Local time
Today, 22:59
Joined
Mar 31, 2010
Messages
38
Hello, i need some piece of advise here. I have created a form with some boxes on it which include in their body textboxes and labels and combos. I would like to know if it is possible (or if a control exist) to group this items which are inside the box and with a simple box.visible = false to make them all non visible without tagging them or adding code with their names statically to make them non visible. Also can someone provide a link that shows how to move controls in the form in runtime?
I would like to hide some controls and make smaller the form and if user selects a checkbox to show these controls that exist inside a box and grow the form.

Thanks in advance.
 
I would like to know if it is possible (or if a control exist) to group this items which are inside the box and with a simple box.visible = false to make them all non visible without tagging them or adding code with their names statically to make them non visible.
As far as I know... no.
Maybe the TAB control will help you here.

Also can someone provide a link that shows how to move controls in the form in runtime?
Simple: by setting the .Left and .Top properties
ControlName.Left = .....

I would like to hide some controls and make smaller the form and if user selects a checkbox to show these controls that exist inside a box and grow the form
Put the control that you wish to "hide" on the bottom or right side of the form.
Resize the form (Me.Height = .... or/and Me.With = ....) until this controls will become invisible.
Do not forget to store into a variable the initial dimensions of the form in order to restore it when the controls should be visible.
 

Users who are viewing this thread

Back
Top Bottom