By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,688 Members | 1,936 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,688 IT Pros & Developers. It's quick & easy.

Sending checkbox items to text file

P: 3
I have a checkboxlist named cblLike and I need to know how I can get all the values of the checked item and send them to a text file. I currently have other controls on the form that are being sent to a text file, so all I need to know if how to get all the values of the checkboxlist that are checked and then how to send those in the array I already have so that it will save them in the text file along with all the other values being sent. Can anyone help?
Apr 9 '10 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 564
Hello TwiLiteGXA,

Here is a start for ya:

Expand|Select|Wrap|Line Numbers
  1. Dim MyArray(4) As String
  2. For x = 0 To CheckedListBox1.CheckedItems.Count - 1
  3.      MyArray(x) = CStr(CheckedListBox1.CheckedItems(x))
  4. Next x
Happy Coding,
Apr 9 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.