Hi,
I've made my listbox is finally searched the item herraus which clicks the user.
Unfortunately, this is written as a string, but now I need to compare again an integer.
Here's my problem:
hope you understand my problem with my poor english.Code:// Get the currently selected item in the ListBox. String^ curItem = listBox1->SelectedItem->ToString(); MessageBox::Show( curItem); // SHOWS WHICH Item in the List is clicked if (curItem = 1) if Number 1 is clicked my text will be visible { this->richTextBox1->Visible = true;; }
I only want to know what is clicked to compare some if rules to show textboxed or hide them.
hope you can help me.
ty