Page 1 of 1
question about option boxes
Posted: Tue Feb 15, 2005 7:18 pm
by Cheech|N|Chong
i placed an option box on a proggy, and wantyed to know whats the property or whatever:
name.property e.g. : label1.label
whats the options propery?
option1. ???
is this right after i get the property?
dim Yes as string
yes = option1. w/e prop. is
if option1.prop = true then msgbox "blah blah blah blah"
?
Re: question about option boxes
Posted: Tue Feb 15, 2005 9:23 pm
by Oosty
checkbox1.vbchecked and checkbox1.vbunchecked i think
Posted: Wed Feb 16, 2005 2:23 am
by [CL]9mm-Man
If option1 = True Then MsgBox "blahblahblah"
I think thats what you were looking for. If not type option then press . so it looks like option. and a box should come up with all the properties
Posted: Wed Feb 16, 2005 4:36 pm
by Cheech|N|Chong
actually what i wanted 2 knoe wus wut is the property of an optionbox...which i found out is
youroption.Value
Code: Select all
Dim name As String
Dim last As String
Dim chinyes As String
Dim chinno As String
last = txtLast.Text
name = txtName.Text
chinyes = Option1.Value
chinno = Option2.Value
If chinyes = True Then MsgBox "hey their playa!"
Posted: Wed Feb 16, 2005 10:41 pm
by Oosty
damn, i thought you ment checkboxes
Posted: Thu Feb 17, 2005 10:38 am
by Cheech|N|Chong
Oosty wrote:****, i thought you ment checkboxes
same for checkboxes also =0