473,396 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to add checkeditems from CheckedListBox to TextBox one by one?

how can I add checkeditems or one by one items on click from CheckedListBox to TextBox one by one with( ;) between them such as emails in field of mailto ?
Jan 22 '11 #1
1 6551
!NoItAll
297 100+
Assuming the textbox is called TextBox1 and your checked listbox is CheckedListBox1 - try the following:

Expand|Select|Wrap|Line Numbers
  1.         For Each ListItem As Integer In CheckedListBox1.CheckedIndices
  2.  
  3.             TextBox1.AppendText(CheckedListBox1.Items.Item(ListItem).ToString & ";")
  4.  
  5.         Next
  6.  
This will always put an extra semicolon at the end of the string - you may want to remove it if you have to.
Jan 23 '11 #2

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

Similar topics

1
by: Aamir | last post by:
What is the straightforward way to get the checked contents of a CheckedListBox. I have a method that is supposed to return the csv string value out of CheckedItemCollection. But I don't kow how...
0
by: Aamir | last post by:
what is the shortest way to uncheck all the checked items in a CheckedListBox. I have coded a method as follows that takes the CheckedListBox and the CheckedItems collection as arguments and loops...
2
by: Dave Veeneman | last post by:
Is there a simple way to check the status of an item as checked or unchecked in a CheckedListBox? I need to cycle through a CheckedListBox and take one of two actions for each item, depending on...
2
by: 0582 | last post by:
Dear helpers, how do I get the value indeces of items checked in CheckedListBox? I have tried to do this but It doesn't seem work?? foreach(int index in...
2
by: Mike Kim | last post by:
Hi all, I've populated a checkedlistbox control with a dataset as follows: chklstTasks.DataSource = dsTask.Tables("Task").DefaultView chklstTasks.DisplayMember = "header"...
4
by: Matthew | last post by:
Hi, I am using a checkedlistbox on a windows form and binding it to a collection of classes. clbAliases is the checkedlistbox control selectedplace is a class with property placealiases.This...
2
by: Manuel Canas | last post by:
Hi there, I'm having this dilema with a checkedlistbox. I have an array of items in there, what I want to accomplish is the following; The user could check all the items in the...
2
by: s | last post by:
Hi! I have Dataset named "bledy", where first column is ID and second is NAME . I set all things by: BledyCheckedListBox.DataSource = bledy.Tables; BledyCheckedListBox.DisplayMember =...
1
by: parkashkaur | last post by:
Hello I Joined you recently I am working in software dept. Please let me know how we can get value from checkedlistbox with the help of for loop so that we can store the data in a seperate table...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.