no to make a property readonly

Hello,

We are developing a security library, it just takes the controls and, with some data in the database, set the enable and visible property. But I set that properties in the load event of the form according with the database, i would like to avoid programmers to set the enable and visible property by code after the load event.

Do you now a way to make that properties readonly after setting them? I would like that just for certains controls, nor for all of the form.

Thanks in advance.

[519 byte] By [creaturita] at [2007-12-30]
# 1
It's not clear what you want to be read only. Who is doing what? you say that you are setting the properties in the form load, so you are the programmer. When it 'takes' the controls, what do you mean?
SJWhiteley at 2007-9-5 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2

well, being direct, what i want is this:

textbox1.visible=false

And make that property readonly. Noone could change it.

creaturita at 2007-9-5 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 3
creaturita wrote:

well, being direct, what i want is this:

textbox1.visible=false

And make that property readonly. Noone could change it.

The Windows.Forms.Control type does not support this kind of functionality directly. Are you comfortable creating your own controls?

DickDonny at 2007-9-5 > top of Msdn Tech,Visual Basic,Visual Basic Language...