Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problem with combo Box-values get repeating

Problem with combo Box-values get repeating

Scheduled Pinned Locked Moved C / C++ / MFC
databasevisual-studiohelp
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SnaKeBeD
    wrote on last edited by
    #1

    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||

    D 1 Reply Last reply
    0
    • S 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||

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      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

      S 1 Reply Last reply
      0
      • D David Crow

        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

        S Offline
        S Offline
        SnaKeBeD
        wrote on last edited by
        #3

        hi, could u please tell me how do i send that message?

        ||SnAkeBed||

        D 1 Reply Last reply
        0
        • S SnaKeBeD

          hi, could u please tell me how do i send that message?

          ||SnAkeBed||

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          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

          S 1 Reply Last reply
          0
          • D David Crow

            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

            S Offline
            S Offline
            SnaKeBeD
            wrote on last edited by
            #5

            thanx

            ||SnAkeBed||

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups