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. Windows Forms
  4. Regarding listbox and combobox

Regarding listbox and combobox

Scheduled Pinned Locked Moved Windows Forms
helpquestion
13 Posts 4 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.
  • A AKSSMV

    Hi Thanks for the reply 1) Categories CategoryID --- PK Category Name 2) Subcategories CategoryId----FK SubCategory I would like to display the category name from Categories table in combobox. Based on the selection from the combobox corresponding subcategory from the Subcategories table( here Category id can be duplicate)in the listbox.

    Thanks Sathi

    A Offline
    A Offline
    AKSSMV
    wrote on last edited by
    #4

    Please help me with this...... I would like to display the category name from Categories table in combobox. Based on the selection from the combobox corresponding subcategory from the Subcategories table( here Category id can be duplicate)in the listbox.

    Thanks Sathi

    L 1 Reply Last reply
    0
    • A AKSSMV

      Please help me with this...... I would like to display the category name from Categories table in combobox. Based on the selection from the combobox corresponding subcategory from the Subcategories table( here Category id can be duplicate)in the listbox.

      Thanks Sathi

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #5

      AKSSMV wrote:

      Please help me with this......

      If I can help, I will. However you first need to explain what you need help with.

      A 1 Reply Last reply
      0
      • L led mike

        AKSSMV wrote:

        Please help me with this......

        If I can help, I will. However you first need to explain what you need help with.

        A Offline
        A Offline
        AKSSMV
        wrote on last edited by
        #6

        I would like to display the CategoryName from Categories table in ComboBox. Based on the selection from the ComboBox display corresponding SubCategory from the SubCategories table (here Category id can be duplicate) in the Listbox.

        Thanks Sathi

        L 1 Reply Last reply
        0
        • A AKSSMV

          I would like to display the CategoryName from Categories table in ComboBox. Based on the selection from the ComboBox display corresponding SubCategory from the SubCategories table (here Category id can be duplicate) in the Listbox.

          Thanks Sathi

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #7

          Ok, but can you stop telling me what you want to do and explain why you can't do it? In other words, what is the problem that you need help with? Which is what I have asked you like 3 times now.

          A 1 Reply Last reply
          0
          • L led mike

            Ok, but can you stop telling me what you want to do and explain why you can't do it? In other words, what is the problem that you need help with? Which is what I have asked you like 3 times now.

            A Offline
            A Offline
            AKSSMV
            wrote on last edited by
            #8

            Sorry for the trouble. Please help me with the code to get the job done as written in prevous message. I would like to get the categoryId of the selected categoryName of combobox from the Categories table so as to compare and display the subcategory in the listbox

            Thanks Sathi

            L 1 Reply Last reply
            0
            • A AKSSMV

              Sorry for the trouble. Please help me with the code to get the job done as written in prevous message. I would like to get the categoryId of the selected categoryName of combobox from the Categories table so as to compare and display the subcategory in the listbox

              Thanks Sathi

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #9

              Oh, you don't want to program yourself, you just want someone to create code for you? Do you also need someone to polish your shoes? :)

              Luc Pattyn [Forum Guidelines] [My Articles]


              Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


              A 1 Reply Last reply
              0
              • L Luc Pattyn

                Oh, you don't want to program yourself, you just want someone to create code for you? Do you also need someone to polish your shoes? :)

                Luc Pattyn [Forum Guidelines] [My Articles]


                Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


                A Offline
                A Offline
                AKSSMV
                wrote on last edited by
                #10

                Wow.....what a nice answer...... just because i am not smarter than you....

                Thanks Sathi

                L 1 Reply Last reply
                0
                • A AKSSMV

                  Wow.....what a nice answer...... just because i am not smarter than you....

                  Thanks Sathi

                  L Offline
                  L Offline
                  led mike
                  wrote on last edited by
                  #11

                  AKSSMV wrote:

                  just because i am not smarter than you....

                  Smarter? Really? That's your excuse? WOW

                  AKSSMV wrote:

                  what a nice answer

                  In four attempts you still have not provided even the smallest amount of information about the programming problem you are having. How long did you think it would be until you irritated someone?

                  A 1 Reply Last reply
                  0
                  • L led mike

                    AKSSMV wrote:

                    just because i am not smarter than you....

                    Smarter? Really? That's your excuse? WOW

                    AKSSMV wrote:

                    what a nice answer

                    In four attempts you still have not provided even the smallest amount of information about the programming problem you are having. How long did you think it would be until you irritated someone?

                    A Offline
                    A Offline
                    AKSSMV
                    wrote on last edited by
                    #12

                    Thanks a lot Sorry for all the trouble...............

                    Thanks Sathi

                    X 1 Reply Last reply
                    0
                    • A AKSSMV

                      Thanks a lot Sorry for all the trouble...............

                      Thanks Sathi

                      X Offline
                      X Offline
                      xpto05
                      wrote on last edited by
                      #13

                      Hi, Your problem is that on the subcategory you need one more field you need Categories ID Category SubCategories ID Category SubCategory You should use the ER Model always that it is possible and that requires a unique identifier per table... for me this is the easiest way to do it!!! Your queries should be some like For the Categories SELECT * FROM Categories For the subcategories SELECT * FROM SubCategories WHERE Category = 'YOUR CATEGORY ID' This way you retrive all the sub categories for that specific Category... with no offense but Sometimes i dont understand what kind of work is this people doing to so this basic questions! i believe that you should buy a book and understant the whole concept about databases before trying to do this kind of job

                      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