Problem in DropList Combobox.
-
Hi all, I m using Droplist combobox because i want to use uneditable combobox. but when i want to show particular string of combobox then it is blank. I m using here SelectString but it is not working. Please tell me how can i show the selected string in droplist combobox. Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
-
Hi all, I m using Droplist combobox because i want to use uneditable combobox. but when i want to show particular string of combobox then it is blank. I m using here SelectString but it is not working. Please tell me how can i show the selected string in droplist combobox. Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
Can you please show us your code?
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
Can you please show us your code?
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
But is working in case of Dropdown. in my code at input side i m save a string from Combbox.and at the time output i m showing the saved string. CCombobox m_mnts_combo; m_mnts_combo.SelectString(0, (CString)m_PayMonth);
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
-
Can you please show us your code?
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
Hey what happend for your posts(are you toxxct? :laugh:) of course I give you 5 vote ;) ,but its question for me why 1 without any explain?
-
Hey what happend for your posts(are you toxxct? :laugh:) of course I give you 5 vote ;) ,but its question for me why 1 without any explain?
Thanks a lot for the vote. :)
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
Hi all, I m using Droplist combobox because i want to use uneditable combobox. but when i want to show particular string of combobox then it is blank. I m using here SelectString but it is not working. Please tell me how can i show the selected string in droplist combobox. Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
ThatsMe. wrote:
I m using here SelectString but it is not working.
Why its not working?whats the return value?
-
But is working in case of Dropdown. in my code at input side i m save a string from Combbox.and at the time output i m showing the saved string. CCombobox m_mnts_combo; m_mnts_combo.SelectString(0, (CString)m_PayMonth);
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
Have you checked the return value of SelectSring? The documentation says that the return value would be: The zero-based index of the selected item if the string was found. If the search was unsuccessful, the return value is CB_ERR and the current selection is not changed.
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
Thanks a lot for the vote. :)
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
You're welcome. :-D
-
Hi all, I m using Droplist combobox because i want to use uneditable combobox. but when i want to show particular string of combobox then it is blank. I m using here SelectString but it is not working. Please tell me how can i show the selected string in droplist combobox. Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
-
But is working in case of Dropdown. in my code at input side i m save a string from Combbox.and at the time output i m showing the saved string. CCombobox m_mnts_combo; m_mnts_combo.SelectString(0, (CString)m_PayMonth);
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
someone wrote:
m_mnts_combo.SelectString(0, (CString)m_PayMonth);
What type is
m_PayMonth
?"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
someone wrote:
m_mnts_combo.SelectString(0, (CString)m_PayMonth);
What type is
m_PayMonth
?"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
it is string which we want to show.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
He asked you what type of variable it is. (LPCTSTR, LPTSTR, TCHAR*, CString, etc?)
Ok, everytime I enter aa code with anny of the #include starters, i get 103 errors and 2 warnings, and then I look for them, and it opens a new window "tab" thingy, and otsream, or istream or math or w/e i am using comes up. It makes testing fully written programs impossible to test. Does anyone know how to fix it?? - A query asked on the VC++ board[^]
-
He asked you what type of variable it is. (LPCTSTR, LPTSTR, TCHAR*, CString, etc?)
Ok, everytime I enter aa code with anny of the #include starters, i get 103 errors and 2 warnings, and then I look for them, and it opens a new window "tab" thingy, and otsream, or istream or math or w/e i am using comes up. It makes testing fully written programs impossible to test. Does anyone know how to fix it?? - A query asked on the VC++ board[^]
-
CString type varialble.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
He will get notified only if you reply to him.
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
CString type varialble.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
Then why the unnecessary cast?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne