Click here to Skip to main content
15,892,575 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
i need to save unchecked values from multiple check boxes
Posted
Comments
pugazhbala 25-May-11 4:54am    
i have multiple check boxes if i checked few it will store fine,if i uncheck it will not saved still it shows old checked value can any one help me
LaxmikantYadav 25-May-11 4:55am    
your question is little bit unclear to me so can u plzz explain it more.
Richard MacCutchan 25-May-11 6:04am    
u plzz : Do not use txtspk, try and act in a professional manner.
Legor 25-May-11 5:18am    
Not clear what you want to do. Improve your question pls.
Richard MacCutchan 25-May-11 6:05am    
Try posting some of the code where you save or restore the values of the boxes. Note: edit your original question with the details.

1 solution

this will loop through the controls on the form, looking for unchecked checkboxes.

VB
for each ctrl as control in me.controls
 if typeof ctrl is checkbox then
  if ctrl.checked = false then
   'do what is needed here
  end if
 end if
next


in regards to the save and update you need to provide more information (as per Richards comments: edit your original question with the details)
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 25-May-11 10:32am    
That's all OP wants to know except "save" itself, but the problem is not formulated. A 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900