D
dubiousp
Guest
Good evening I have almost concluded an app I wonder if some one could point me to the following. My text box currently seaches its collection then puts it into a list box
Is it possible to add a value if not in the collection to list box and back to collection so when searched next time it appears
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...
Is it possible to add a value if not in the collection to list box and back to collection so when searched next time it appears
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...