473,659 Members | 2,562 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I make a checkbox look like it is enabled?

10 New Member
Hi,
I am creating a new screen in a GUI.
Can someone help me how can I make a checkbox look like it is enabled? For example, I use this code EUAMIndCheckBox .setEditable(fa lse); and the checkbox appears to be blur. I know the reason is that to inform the user that it is not editable. But I want it to look like it is enabled but it is not. Hope someone can help me about this. Thanks.
Apr 3 '07 #1
3 3303
JosAH
11,448 Recognized Expert MVP
Make your checkbox editable but tell your listener(s) it actually is not. When
the selection changes undo the changes in your listener(s).

kind regards,

Jos
Apr 3 '07 #2
paoparaopao
10 New Member
Make your checkbox editable but tell your listener(s) it actually is not. When
the selection changes undo the changes in your listener(s).

kind regards,

Jos

Hi Jos

I have tried your suggestion. I made my checkbox editable and not editable in the listener(s) but it still doesn't work.

Thanks
Apr 3 '07 #3
JosAH
11,448 Recognized Expert MVP
Hi Jos

I have tried your suggestion. I made my checkbox editable and not editable in the listener(s) but it still doesn't work.

Thanks
Sorry for not making myself clear: the checkbox itself should be editable.
The listeners treat this checkbox *as if* it were not editable; i.e. whenever
the checkbox fires an event, the listener simply reverts the change and doesn't
do anything else. The checkbox will look as if it is editable (because it is)
but nothing happens when a user clicks on it (because the listeners will
undo the change).

kind regards,

Jos
Apr 3 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
6611
by: Mike Lopez | last post by:
Hello. I need to set a checkbox to the "checked" state and prevent the user from unchecking it. I tried using "disabled", but then the value is not passed on the Post to an ASP page. Anyone have any ideas? Thanks in advance,
2
3778
by: Kufre | last post by:
I need anyone that have done this before to help me. I'm creating a form in Access, in the form has two two checkbox, checkbox A is paid, checkbox B is partial_paid. I want the set the checkbox so that if the user click on checkbox A which is Paid, then checkbox B which is partial_paid should be disable, visa versa, then if checkbox A which is Paid is uncheck then checkbox B becomes visible. This is the code I have so far but when I...
3
4854
by: Randy | last post by:
Hello, I'm creating a table on the fly that is used by a datagrid. I'm also creating a tableStyle that is used for the datagrid to make it look like I want. I'm using the DataGridBoolColumn to make one column a CheckBox field. It shows up fine...as a CheckBox. I looped through the table and stored a true or false in the checkbox column but it appears to have no effect on the checkbox column. No matter what I store there (true/false), when...
5
9156
by: Leo J. Hart IV | last post by:
Hello, I'm hoping someone can help me out. I was wondering if the Enabled property of a CheckBox or RadioButton server control is stored in the ViewState. If not, is there some way to to add this property to ViewState? If needed, I can give you more info on exactly what I'm trying to do. Thanks,
1
4492
by: dx | last post by:
I'm extremely frustrated with ASP.NET...again! To me this should be as simple as setting oCheckBox.Checked = True.. yet for some reason it isn't. I have a user control (ascx) that that has a checkbox and I can't get it to default to checked. I tried radiobuttons and experienced the same result.. can't start them as checked. The really frustrating thing is that I set the attributes of other input controls in the Init() with no problem. ...
3
1605
by: Assimalyst | last post by:
Hi I am attempting to enable/disable webform controls depending on whether a checkbox is checked or not. I have an event handler for when the checkbox checked is changed this.addNewSurgeonChkBx.CheckedChanged += new System.EventHandler(this.addNewSurgeonChkBx_CheckedChanged); And the code called by this is:
2
5515
by: Ceema M via DotNetMonster.com | last post by:
Hello all, I have a nested repeater, which displays categories(parent repeater) and corresponding subcategories(child repeater). Both repeaters have checkboxes. When I check category checkbox and subcategory check boxes and click on submit button , I have to retrieve the corresponding categoryid and subcategory id, so that I can store it to a table. I am getting the categoryid but I am failing to get subcategoryid(actually I don't know...
7
7469
by: schaefty | last post by:
I recently posted this on the incorrect forum, and so I would like to ask the question here. I did get some good ideas on the other group, but I have not yet come up with a solution for me. I am using VS2005 (express edition) and coding in vb.net. I wrote an application that uses 30 checkboxes to set the configuration of a device. The device is constantly polled, and its response is decoded and reported in a mirror battery of another...
1
3788
by: janetb | last post by:
I have a gridview with an update capabilities - a textbox column (roomName), a dropdownlist(orgID), a dropdownlist(roomTypeID),a checkbox column (dialOut), a checkbox column (dialIn). When I try to add another checkbox column, the sql database isn't updated properly with a 0/1 or false/true but with null. I've tried everything I can think of. Can anyone help? Data command stuff: UpdateCommand="update telehealth.dbo.xTblRoom...
0
8851
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8751
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4338
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2757
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.