llouie
asked on
How do make textboxes, cbo, dtp readable when vb.net "Groupbox.enabled = false"
i use to put (textboxes, combo, dtpicker.etc) in a frame from vb6. In this way i can use "Frame.enabled = false" to make it readonly while the user browses the file.
When i shifted to VB2008 , i used groupbox or panel in place of frames. but when i use "groupbox.enabled = false", it grayed out all information.
What should i do to view the information in the groupbox? or to make it readonly?
I have around 30 txbox, cbo, dtp combined in the groupbox.
Thanks.
When i shifted to VB2008 , i used groupbox or panel in place of frames. but when i use "groupbox.enabled = false", it grayed out all information.
What should i do to view the information in the groupbox? or to make it readonly?
I have around 30 txbox, cbo, dtp combined in the groupbox.
Thanks.
ASKER
hi jpaulino,
i got used to putting controls inside frame (from vb6) and just use frame.enabled=false instead of looping on all controls, (making controls ungrayed).. i noticed in vb.net you cant do that anymore, instead you have to loop on all controls.
I just wonder if theres any other way to ungray those conrols.
i got used to putting controls inside frame (from vb6) and just use frame.enabled=false instead of looping on all controls, (making controls ungrayed).. i noticed in vb.net you cant do that anymore, instead you have to loop on all controls.
I just wonder if theres any other way to ungray those conrols.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok i saw the link, thanks for both of you ipaulino and emoreau. This will help me a lot.
Maybe it's better to loop on all controls and set different properties for them ... some readonly (the textboxes) and some enabled = false