I am writing a program to store data and want to make the main page uneditable
I have an edit button that will allow editing from another form but I don't want to change stuff by accident. I have disabeled all of the boxes but don't like the way it grays out. Is there some transparent control that I can place over the top or some other way to accomplish this?

Thank you

6 Years
Discussion Span
Last Post by allen2663

If you're just dealing with textboxes, you can set the readonly property to true.

When doing that you must change the backcolor manually. If you drag a textbox to the form and then set it to read only the back color will get grayed out. Set the back color manually and it won't gray out anymore.


Ahh, great idea! I am actually useing masked text and combo boxes as well. However I just realized that I don't need them on this form since it only displays the data and the editing is done from another form.

Great Simple fix...
Thanks alot Unhnd_Exception

Edited by allen2663: n/a

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.