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.
// 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.
I don't understand your English or you code. Do you want this:
if (curItem == "1")
oh my god...
and i thought i need a integer to compare it.
I dont thought that i can ask for a string with this "".
i searched yesterday 4 h for this problem....
ty so mutch