I have a winforms app in C# in with a user is prompted to select from a range of items, the items are displayed in a listview
with the checkboxes
set to true.
After the user selects one item i want the description and a value from an SQL database to be displayed in another form, in 2 textboxes.
Is there a way to accomplish this?
I think it would be something like:
private void button1_Click(object sender, EventArgs e)
{
If(listView1.SelectedItems = ??);
{
"select[descri] + ' ' + [compo] from vidros"
pass it to form "build" in textbox "desc2"
"select valu from vidros"
pass it to form "build" in textbox "tt"
this.close();
}
else
{
MessageBox.Show("Please select an item!", "Warning!");
}
}