Question about list Box
-
I have a combobox in which i have values when i select a value and press button add, I add it to the list box but I want to control this insertion i mean if i insert a value the second time he must don't accept it. how can i do that thank's :zzz: zizzzzzzzzzzz
-
I have a combobox in which i have values when i select a value and press button add, I add it to the list box but I want to control this insertion i mean if i insert a value the second time he must don't accept it. how can i do that thank's :zzz: zizzzzzzzzzzz
-
I have a combobox in which i have values when i select a value and press button add, I add it to the list box but I want to control this insertion i mean if i insert a value the second time he must don't accept it. how can i do that thank's :zzz: zizzzzzzzzzzz
Hi, Use combox->FindStringExact(...) Api of the CB. if it is -1 then add the string if it gives any nuber greter than 0 then there is a string. Good Luck.
Uday kiran
-
Hi, Use combox->FindStringExact(...) Api of the CB. if it is -1 then add the string if it gives any nuber greter than 0 then there is a string. Good Luck.
Uday kiran
I think that you don't understand my question i'll give you an exemple my combo 0 1 2 3 when I select a value "0" for example and press the button ok it'll be added to the list. I want that when I select this value again it 'll not be added to the listBox because it's already exists. i hope that my explanation is more clear thank's
-
I think that you don't understand my question i'll give you an exemple my combo 0 1 2 3 when I select a value "0" for example and press the button ok it'll be added to the list. I want that when I select this value again it 'll not be added to the listBox because it's already exists. i hope that my explanation is more clear thank's
what's the problem
Uday kiran
-
what's the problem
Uday kiran
-
I don't want to have in my listBox for example 0 1 0 0 you understand me ? the value 0 must figure one's :~
hi, I told na use FistStringExact(...) api which detects the Duplicate Values in the ListBox. //Code......... int i = -1; i = cb->FindStringExact("one"); // one is a String value you want to insert. if(i == -1) { Cb->AddString("one"); } else { MessageBox("Already Exist in the List"); } // end of the Code Whats the Problem.
Uday kiran
-
hi, I told na use FistStringExact(...) api which detects the Duplicate Values in the ListBox. //Code......... int i = -1; i = cb->FindStringExact("one"); // one is a String value you want to insert. if(i == -1) { Cb->AddString("one"); } else { MessageBox("Already Exist in the List"); } // end of the Code Whats the Problem.
Uday kiran
-
I have a combobox in which i have values when i select a value and press button add, I add it to the list box but I want to control this insertion i mean if i insert a value the second time he must don't accept it. how can i do that thank's :zzz: zizzzzzzzzzzz
zizzzz wrote:
...if i insert a value the second time he must don't accept it.
First check to make sure the listbox (not the combobox) does not already contain the item. If it does not, call
AddString()
.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
zizzzz wrote:
...if i insert a value the second time he must don't accept it.
First check to make sure the listbox (not the combobox) does not already contain the item. If it does not, call
AddString()
.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb