D
dubiousp
Guest
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();
Continue reading...
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();
Continue reading...