Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

TB TO LOOK UP LIST ADD TO COLLECTION

$
0
0

Good evening I currently have a code that uses a text ox as look up search from the auto look up collection in TB properties. Currently list box populates lovely,, is there a way I can add the value of the text box back to collection and list box if not already in the collection list

rivate void btnmedsadd_Click(object sender, EventArgs e)
        {
            listboxmeds.Items.Add(tbdrug.Text
        
        }

        private void btnmedsremove_Click(object sender, EventArgs e)
        {
            if (listboxmeds.SelectedIndex != -1);
            {
                listboxmeds.Items.RemoveAt(listboxmeds.SelectedIndex);

            }
        }

        private void btnmedsclear_Click(object sender, EventArgs e)
        {
            listboxmeds.Items.Clear();


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>