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,

Re: ReadOnly by Scott

Scott
Fri Dec 19 17:50:14 CST 2003

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


"Christian Ista" <mailing-list@istasofts.com> wrote in message
news:OqhQ9DoxDHA.2456@TK2MSFTNGP10.phx.gbl...
> 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,
>
>



Re: ReadOnly by Christian

Christian
Sat Dec 20 00:58:56 CST 2003


> 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,



Re: ReadOnly by Scott

Scott
Sat Dec 20 01:35:52 CST 2003

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.


"Christian Ista" <mailing-list@istasofts.com> wrote in message
news:uGqZ%23asxDHA.3416@tk2msftngp13.phx.gbl...
>
> > 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,
>
>



Re: ReadOnly by Matthew

Matthew
Sat Dec 20 01:49:18 CST 2003

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



Re: ReadOnly by Christian

Christian
Sat Dec 20 03:38:47 CST 2003


> 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,



Re: ReadOnly by Scott

Scott
Sat Dec 20 09:33:09 CST 2003

Ok, my bad.

"Christian Ista" <mailing-list@istasofts.com> wrote in message
news:%23ZBDT0txDHA.1764@TK2MSFTNGP10.phx.gbl...
>
> > 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,
>
>



Re: ReadOnly by Scott

Scott
Sat Dec 20 09:32:49 CST 2003


"Matthew W. Jackson" <themuujAThotmailDOTcom@NOSPAM.NOSPAM> wrote in message
news:2aTEb.70825$HH.65183@fe1.texas.rr.com...
> Why is it being assumed that this discussion is about ASP.NET?

Because this is a .NET newsgroup?!

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

That's true.

>
> --Matthew W. Jackson
>
>



Re: ReadOnly by Scott

Scott
Sat Dec 20 09:34:20 CST 2003

In that case, use the Locked property. It does not change the color.



"Christian Ista" <mailing-list@istasofts.com> wrote in message
news:%23ZBDT0txDHA.1764@TK2MSFTNGP10.phx.gbl...
>
> > 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,
>
>



Re: ReadOnly by Matthew

Matthew
Sat Dec 20 11:06:19 CST 2003

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

"Scott M." <s-mar@BADSPAMsnet.net> wrote in message
news:eQNcN6wxDHA.2408@tk2msftngp13.phx.gbl...
>
> "Matthew W. Jackson" <themuujAThotmailDOTcom@NOSPAM.NOSPAM> wrote in
message
> news:2aTEb.70825$HH.65183@fe1.texas.rr.com...
> > Why is it being assumed that this discussion is about ASP.NET?
>
> Because this is a .NET newsgroup?!
>
> >
> > Of course, in the future, it may be nice to clarify what "Forms" are
being
> > talked about...
>
> That's true.
>
> >
> > --Matthew W. Jackson
> >
> >
>
>



Re: ReadOnly by Scott

Scott
Sat Dec 20 20:33:24 CST 2003

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.


"Matthew W. Jackson" <themuujAThotmailDOTcom@NOSPAM.NOSPAM> wrote in message
news:fk%Eb.146976$Ek.116974@twister.austin.rr.com...
> 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
>
> "Scott M." <s-mar@BADSPAMsnet.net> wrote in message
> news:eQNcN6wxDHA.2408@tk2msftngp13.phx.gbl...
> >
> > "Matthew W. Jackson" <themuujAThotmailDOTcom@NOSPAM.NOSPAM> wrote in
> message
> > news:2aTEb.70825$HH.65183@fe1.texas.rr.com...
> > > Why is it being assumed that this discussion is about ASP.NET?
> >
> > Because this is a .NET newsgroup?!
> >
> > >
> > > Of course, in the future, it may be nice to clarify what "Forms" are
> being
> > > talked about...
> >
> > That's true.
> >
> > >
> > > --Matthew W. Jackson
> > >
> > >
> >
> >
>
>



Re: ReadOnly by Matthew

Matthew
Sat Dec 20 21:01:13 CST 2003

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

"Scott M." <s-mar@BADSPAMsnet.net> wrote in message
news:%23UlNUr2xDHA.3220@tk2msftngp13.phx.gbl...
> 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.
>
>
> "Matthew W. Jackson" <themuujAThotmailDOTcom@NOSPAM.NOSPAM> wrote in
message
> news:fk%Eb.146976$Ek.116974@twister.austin.rr.com...
> > 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
> >
> > "Scott M." <s-mar@BADSPAMsnet.net> wrote in message
> > news:eQNcN6wxDHA.2408@tk2msftngp13.phx.gbl...
> > >
> > > "Matthew W. Jackson" <themuujAThotmailDOTcom@NOSPAM.NOSPAM> wrote in
> > message
> > > news:2aTEb.70825$HH.65183@fe1.texas.rr.com...
> > > > Why is it being assumed that this discussion is about ASP.NET?
> > >
> > > Because this is a .NET newsgroup?!
> > >
> > > >
> > > > Of course, in the future, it may be nice to clarify what "Forms" are
> > being
> > > > talked about...
> > >
> > > That's true.
> > >
> > > >
> > > > --Matthew W. Jackson
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: ReadOnly by Cor

Cor
Sun Dec 21 12:47:32 CST 2003

Hi Christian,

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

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



Re: ReadOnly by Scott

Scott
Sun Dec 21 12:59:53 CST 2003

Using the Locked property instead of the enabled property will do the trick.

"Cor" <non@non.com> wrote in message
news:OnrnWM$xDHA.4064@tk2msftngp13.phx.gbl...
> Hi Christian,
>
> You can change the background colour from windows to active caption Text
or
> what you like
>
> Cor
> > > Actually, changing the ReadOnly property to False does not change the
> > > background color, changing the Enabled property does.
> >
>
>