?
Solved

Triple State check box needed

Posted on 2003-03-13
3
Medium Priority
?
232 Views
Last Modified: 2013-12-26
I am trying to find a 3 state checkbox and can't seem to find an ocx or any kind of instructions to make one. The Check box needs to have values 0 - unchecked, 1 - pending check, 2 - checked.

The values 0,1, and 2 are needed but the descriptions were supplied by me and can be anything. Any help would be great.

Thanks in Advance.
0
Comment
Question by:pang0018
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Expert Comment

by:DaCableGy
ID: 8134432
i don't know of any 3-states that are available controls, but it is easy to make one
use a image and a label and then when the user clicks on either change the image between img0, img1, img2 and repeat
i will look the same if you want to make the img look the same and you can also make some really graphical ones too.
so it will look like
image   label
XXXXX   XXXXXXXXXXXXXXX
X   X   XXXXXXXXXXXXXXX
XXXXX   XXXXXXXXXXXXXXX

and then use something like
sub image_Click
  if image.tag <> 1 and image.tag <> 2 then
    image.tag = 1
    image.picture = img1.src
  end if
  if image.tag = 1 then
    image.tag = 2
    image.picture = img2.src
  end if
  if image.tag = 2 then
    image.tag = 0
    image.picture = img0.src
  end if
end sub

that will create a nice loop so the user can cycle through
hope that starts you in the right direction
---DaCableGy---
0
 
LVL 43

Accepted Solution

by:
TimCottee earned 300 total points
ID: 8135152
The standard VB Checkbox is already tristate:

0 - Unchecked
1 - Checked
2 - Grayed (Checked with gray background).
0
 
LVL 6

Expert Comment

by:GPrentice00
ID: 9053269
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

 -->Accept TimCottee's comment as Answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER

GPrentice00
Cleanup Volunteer
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month9 days, 18 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question