ReadOnly

  • Thread starter Thread starter Christian Ista
  • Start date Start date
C

Christian Ista

Hello,

I have a some TextBox bind to Access database via DataAdapter and DataSet.

I'd like not allow edition, edition will be available via an "Edit" button.

Is there an another way than change the ReadOnly property of these TextBox
to false (because the background color change) to not allow edition ?

Thanks,
 
Actually, changing the ReadOnly property to False does not change the
background color, changing the Enabled property does.
 
Actually, changing the ReadOnly property to False does not change the
background color, changing the Enabled property does.

I just tried, for both the color change.

Christian,
 
ReadOnly does NOT change the text color of a Web Form (or HTML for that
matter) textbox. This is actually an HTML issue not a .NET one. Since web
form controls render in HTML, they must translate their property settings
into HTML. In HTML, ReadOnly does not change the color of the text.


If you are changing the ReadOnly property of a textbox and its text is
changing color, then something is wrong with your setup.
 
Why is it being assumed that this discussion is about ASP.NET?

Of course, in the future, it may be nice to clarify what "Forms" are being
talked about...

--Matthew W. Jackson
 
ReadOnly does NOT change the text color of a Web Form (or HTML for that
matter) textbox. This is actually an HTML issue not a .NET one. Since web
form controls render in HTML, they must translate their property settings
into HTML. In HTML, ReadOnly does not change the color of the text.


Sorry, I talk about a Windows Form not ASP.NET.

Christian,
 
System.Windows.Forms are just as much .NET as ASP.NET.

In fact, unless stated otherwise (or unless I can imply it by the
discussion) I usually assume people are talking about SWF.

--Matthew W. Jackson
 
Well, I guess that's the problem here. You see, unless stated otherwise (or
unless I can imply it by the discussion) I usually assume people are talking
about System.Web.UI.

Now we both know what happens when one assumes! LOL.
 
For that matter, I suppose the discussion could have been about GTK#
(although I'm not sure if there is a "TextBox" class in that library). Go
figure..

--Matthew W. Jackson
 
Hi Christian,

You can change the background colour from windows to active caption Text or
what you like

Cor
 
Back
Top