Re: Check box

S

Steven Burn

size as in?.....width?

form.control.width = <newwidth> (replacing "control" with the name of the
control you wih to resize

I would presume

--
Regards

Steven Burn
Ur I.T. Mate Group CEO
www.it-mate.co.uk
 
J

Joan Wild

I'll quote from a recent message by another MVP:
<q>
Here's what's needed..

Set your actual CheckBoxName.Visible to No.

Add an unbound label to the form detail section.
Set it's BackStyle to Normal.
BackColor to White
SpecialEffect to Sunken
BorderStyle to Solid
Caption to " " (a space)
Font to WingDings
FontSize to whatever you want (perhaps 14)
Place this label where you wish to see the check mark.
I've named it LabelLargeCheck.

Code the new Label's Click event:

Private Sub LabelLargeCheck_Click()
[CheckBoxName] = Not ([CheckBoxName])
If [CheckBoxName] = -1 Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = ""
End If
End Sub

Code the Form Current Event:

Private Sub Form_Current()
If [CheckBoxName] = -1 Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = ""
End If
End Sub

Adjust the height and width of the label so the check mark fits.
If you want a CheckBox field label then just add another unbound label
and set its caption to the CheckBox field name. Leave it Visible.

Don't forget to change the name of the CheckBoxName in this coding to
whatever your Checkbox field is.
That should do it.

Clicking on the new Label is equivalent to clicking on the CheckBox
field itself.
<q>
 
Joined
Oct 15, 2009
Messages
1
Reaction score
0
is it possible to program the keyboared to your own wingdings symbols could I program the font should look the way I want
 

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

Similar Threads

Can I send a batch of mail through access? 6
Editors ... 1
fileupdates.net 4
get pirtated softwres 2
VCD burning software needed 17
[REQ] HDCopy 3
Software archive 1
[REQ] Anything along the lines of nLite? 1

Top