0

I have been surfing the net for hours but couldn't find anything as to whether it is possible to make a groupbox readonly. So if you can make it read-only how do you go about?Is there any code?Thanks

3
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by omotoyosi
0

I have been surfing the net for hours but couldn't find anything as to whether it is possible to make a groupbox readonly. So if you can make it read-only how do you go about?Is there any code?Thanks

try this


GroupBox1.Enabled = False

0

yeah it works but however when i click on the edit button on my form then it does not work. I need it not to be readonly when i click on the edit button.

0

if you want to do groupbox read only when you click on edit button so use this code on edit button click event
code is
groupbox.enabled = false

0

Better still you can put the edit button below the groupbox
in the form load
groupbox.enabled = false
then to edit it, in the edit button
groupbox.enabled = true

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.