-
listbox Problem
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:
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;;
}
hope you understand my problem with my poor english.
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
-
I don't understand your English or you code. Do you want this:
Code:
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 "".
ty
i searched yesterday 4 h for this problem....
so bad
ty so mutch