PC Review


Reply
 
 
=?Utf-8?B?ZnJlZGR5?=
Guest
Posts: n/a
 
      21st Oct 2004
I have six sheckbow and I told like to know if there checked and if so add 50
cents to the total.
 
Reply With Quote
 
 
 
 
Gerry O'Brien [MVP]
Guest
Posts: n/a
 
      21st Oct 2004
Create a loop to iterate through them and check their checked property. It
returns a boolean value indicating True if checked and False if not checked.

For each ctl as Control In Form1.Controls
If TypeOf ctl Is CheckBox Then
If ctl.checked Then
' add 50 cents to total
End
End If
Next

--
Gerry O'Brien [MVP]
Visual Basic .NET(VB.NET)




"freddy" <(E-Mail Removed)> wrote in message
news:B97CA701-5099-4B97-A00D-(E-Mail Removed)...
>I have six sheckbow and I told like to know if there checked and if so add
>50
> cents to the total.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
checkbox on form reset from checkbox on sheet raw Microsoft Excel Programming 1 3rd Dec 2005 06:08 AM
Text on Checkbox below the checkbox tshad Microsoft ASP .NET 0 15th Apr 2005 12:26 AM
Master-Detail Datagrid -checkbox (once tick the checkbox, all the child checkbox is ticked) Agnes Microsoft VB .NET 0 16th Aug 2004 11:23 AM
CheckBox: Changing Only Checkbox not Text Backcolor =?Utf-8?B?TWFyaw==?= Microsoft Dot NET Framework Forms 0 29th Apr 2004 05:46 PM
CheckBox - KeepText enabled when disabling input of CheckBox? =?Utf-8?B?RXZlbHluZQ==?= Microsoft C# .NET 1 7th Apr 2004 06:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:25 PM.