English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need help with this:
I have created five checkboxes with caption A, B, C, D, e respectively. As the user are finished with clicking on any of those checkboxes, then need to click a commandbutton. Then the captions of the checkboxes they selected should be displayed in a list?

What is the code for this?

And what is the code to display the date and time?

* 10 pts for a good answer

2007-02-19 04:46:08 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

What Version VB... .NET or previous? Check out http://www.pscode.com for great sample codes.

2007-02-19 08:53:19 · answer #1 · answered by Richard H 7 · 0 0

design time make command buttons enabled property false
write the code below in check box's click event
command1.enabled=true
write the code below in command buttons click event
List1.AddItem (Check1.Caption)
check with if condition for each check box
eg
if check1.value=1 then
List1.AddItem (Check1.Caption)
elseif check2.value=1
etc
for time and date
List1.AddItem (Time)
List1.AddItem (date)
you can see the time like a clock by using timer
try with this and make further improvements withyour own logic
you can do that
good luck

2007-02-19 13:52:46 · answer #2 · answered by salin s 2 · 0 0

IF chkBoxA.checked = True THEN
List1.addItem (chkBoxA.caption)
End If

txtBoxDateTime = Now()

2007-02-19 12:58:38 · answer #3 · answered by rod 6 · 0 0

fedest.com, questions and answers