473,405 Members | 2,294 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,405 software developers and data experts.

Check box that appears grayed

I have a check box on a form that is linked to a DataRow
field with a value of 0 or 1. When the form is
displayed, the checkbox is grayed with a check inside.
If i evaluate the control with IsDBNull it comes back
true, is this because in .Net, the checkbox can't convert
1 and 0 to True and False?
Nov 20 '05 #1
1 1191
* "Michael Horsfall" <ho*******@msn.com> scripsit:
I have a check box on a form that is linked to a DataRow
field with a value of 0 or 1. When the form is
displayed, the checkbox is grayed with a check inside.
If i evaluate the control with IsDBNull it comes back
true, is this because in .Net, the checkbox can't convert
1 and 0 to True and False?


In VB.NET, 'True' is -1. I am not sure if this is related to your problem.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

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

Similar topics

2
by: Raymond H. | last post by:
Hello, I'd like to be able to desabled the 'Read only' (and grayed this case) with vb codes. How to do this to protect a file againts deleting? r.h.
4
by: Ed | last post by:
Hello All, I posted earlier about a problem I was having with editing or pasting/deleting files in the "Home Directory" of my web server. I just noticed that the "Home Directory" option in the...
0
by: Mark Molinari | last post by:
Hello, I have a Windows 2003 Enterprise server, acting as the primary domain controller, with 2 instances of SQL Server 2000, Active Directory, and Exchange 2003 running on it. Both sql server...
0
by: sportsfntc | last post by:
Hello everyone.. After much searching for the fact that in Access 2002/XP, the pivot table options (like the toolbar buttons and the add to button) are grayed out in some cases, I am happy to...
2
by: freshtracks | last post by:
Our in-house developer has left the company and I now find myself managing a custom in-house application that runs on Access 97. I did not create the application, so I don't know all the "secrets"...
6
by: Rajesh Kumar Mallah | last post by:
Greetings! It is found that pg_dump does not dump function referred in CHECK constraint definations before dumping the table defination . As a result the tables do not get restored due to lack...
17
by: rdemyan via AccessMonster.com | last post by:
I have a launcher program that creates the shortcut to open my application using the Shell command. On the form I have a decompile checkbox that I can conveniently use to decompile my program. I...
1
by: nospam | last post by:
Hello all, Using Net 2 0 and VS 2005 and MSSQL 2000... I am a newbie to ASP. I am trying to created a screen to manipulate a table - CRUD commands. The problem is the checkbox to...
6
by: Redbeard | last post by:
I am Newbie using Access 2003. I am trying to have one list box and one textbox on my form grayed out (not useable) until a check box has been checked. Is there a simple way of doing this?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.