Locked control

G

Guest

Hi All;

I am trying to find a way to make my locked control more visible on a web
form. When I lock a control and display it on a web form (ASP.NET) the
control is
barely visible and it is hard for users to see it. Is there a way to make the
control bit more visible?

A locked control on a windows form (using VB.NET) always looks normal even
though a user cannot change anything.

Any help is greatly appreciated. Thanks
 
R

Ray Booysen

kafi said:
Hi All;

I am trying to find a way to make my locked control more visible on a web
form. When I lock a control and display it on a web form (ASP.NET) the
control is
barely visible and it is hard for users to see it. Is there a way to make the
control bit more visible?

A locked control on a windows form (using VB.NET) always looks normal even
though a user cannot change anything.

Any help is greatly appreciated. Thanks
CSS?
 
G

Guest

Can I get an example on how to use CSSClass on a checkbox where it stays read
only? Thanks
 
W

webonomic

Maybe something like this:
<style>
.test
{
font-size:16px;
color:#606060;
border-top:2px solid #626262;
border-bottom:2px solid #626262;
background-color:#C4C4C4;
padding:0 15px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<span class="test">disabled</span>
<br />
<br /><br />
test<asp:CheckBox ID="cbCss" Checked="true" runat="server"
CssClass="test" Font-Strikeout="true" Enabled="false"
ToolTip="disabled" />
</div>
</form>
</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top