473,396 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Locked control

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

Mar 29 '06 #1
3 1334
kafi wrote:
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?
Mar 30 '06 #2
Can I get an example on how to use CSSClass on a checkbox where it stays read
only? Thanks

"Ray Booysen" wrote:
kafi wrote:
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?

Mar 30 '06 #3
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>

Apr 1 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Finn | last post by:
What has happened to a control's .Locked property ? Has Microsoft removed it ? The textbox control has a .ReadOnly property, but other controls (such as the combo) do not have this property. ...
0
by: Tech | last post by:
In Visual Basic 6.0, the Locked property of a ComboBox control determined whether the text-box portion of the control could be edited. In Visual Basic ..NET, the Locked property prevents a control...
6
by: DebbieG | last post by:
I have created a database for a client and was told that it was to be a one-user database. Well, you know the next statement ... now they want 3 people to be able to use the database. (FYI, I...
1
by: Rolan | last post by:
Having tried various permutations of Before Update and well for that matter, After Update, OnExit, OnEnter, etc. and also Locked controls, I'm still unable to obtain the intended results. There are...
7
by: Andrea Moro | last post by:
I'm writing my first windows control library. A simple textbox with some numeric facilities. Well, there is a strange thing that happen. I want to add a locked property. As many other property,...
4
by: kafi | last post by:
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...
2
by: kafi | last post by:
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...
8
by: kevin.vaughan | last post by:
Good Afternoon Everyone, Could someone please explain why I can't set the Subform control Visible attribute to False as below? The statement for the locked attributes work but not for the...
4
by: jmartmem | last post by:
I have an Access 2002 main form ("Project Initiation Checklist") with a subform ("sfPICMilestone"). The Link Child Field is ID and the Link Master Field is also ID. The linked field is an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.