Problem with combo Box-values get repeating
-
hi friends, Pgming Env. = VS 6.0 DataBase = MS Acess My problem arised when i tried to fetch a coloumn in to combo box frm the acess, fetching is done fine. but when i click tw combo box next time all the values are getting repeated(adding up), how should i clear the old data or suggest me some ideas when playing around with combo box thanks in advance....:^)
||SnAkeBed||
-
hi friends, Pgming Env. = VS 6.0 DataBase = MS Acess My problem arised when i tried to fetch a coloumn in to combo box frm the acess, fetching is done fine. but when i click tw combo box next time all the values are getting repeated(adding up), how should i clear the old data or suggest me some ideas when playing around with combo box thanks in advance....:^)
||SnAkeBed||
SnaKeBeD wrote:
...how should i clear the old data...
Send it a
CB_RESETCONTENT
message.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
SnaKeBeD wrote:
...how should i clear the old data...
Send it a
CB_RESETCONTENT
message.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
SnaKeBeD wrote:
...how do i send that message?
The same way you would send the
CB_ADDSTRING
message, unless MFC is hiding all of these details from you.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
SnaKeBeD wrote:
...how do i send that message?
The same way you would send the
CB_ADDSTRING
message, unless MFC is hiding all of these details from you.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne