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.
Main Topics
Browse All Topics





by: jpaulinoPosted on 2009-05-02 at 02:20:36ID: 24285453
If you define a groupbox with enabled = false, all the controls inside will be enabled = false. That's the best solutions for cbo, dt, etc. For the textboxes you can use the readonly property instead.
Maybe it's better to loop on all controls and set different properties for them ... some readonly (the textboxes) and some enabled = false