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#
  4. hi friends I need help

hi friends I need help

Scheduled Pinned Locked Moved C#
helpcsharpvisual-studio
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.
  • D Offline
    D Offline
    Denver Thomas
    wrote on last edited by
    #1

    I am using visual studio 2003(FW 1.1).I filled a combobox using value member and display member from a datasource.when I run my project that combo box is hanging ,ie values are there in combobox but I cant select from that.(values are not populating).Comboboxes are working fine if I add Items using Item.Add() method.Any way to solve this problem as I need to get value member from that.Pls help me .... with regards thomas

    C 1 Reply Last reply
    0
    • D Denver Thomas

      I am using visual studio 2003(FW 1.1).I filled a combobox using value member and display member from a datasource.when I run my project that combo box is hanging ,ie values are there in combobox but I cant select from that.(values are not populating).Comboboxes are working fine if I add Items using Item.Add() method.Any way to solve this problem as I need to get value member from that.Pls help me .... with regards thomas

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Best guess is that your code to get the data from the source is hanging. Have you tried debugging to work out where it gets stuck ?

      Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

      D 1 Reply Last reply
      0
      • C Christian Graus

        Best guess is that your code to get the data from the source is hanging. Have you tried debugging to work out where it gets stuck ?

        Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

        D Offline
        D Offline
        Denver Thomas
        wrote on last edited by
        #3

        there is no problem while debugging.its a simple code , here it is ... cmboobx.Datasource=Dataset.Tables[0]; cmboobx.Displaymember=string Display member ; cmboobx.VauemEMBER=STRING VALUE MEMBER; this is the code I used.But while running combobox is not hanging.we can select values using scroll in our mouse.But we cant click and select that value. thank you for your reply friend.

        C 1 Reply Last reply
        0
        • D Denver Thomas

          there is no problem while debugging.its a simple code , here it is ... cmboobx.Datasource=Dataset.Tables[0]; cmboobx.Displaymember=string Display member ; cmboobx.VauemEMBER=STRING VALUE MEMBER; this is the code I used.But while running combobox is not hanging.we can select values using scroll in our mouse.But we cant click and select that value. thank you for your reply friend.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          I don't see how that's possible. You can scroll through the items, but can't select one ? What are you clicking, the items in a drop down list that appears ? Of course, the code you posted is broken, it would not even compile. what does your code really look like ?

          Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

          D 1 Reply Last reply
          0
          • C Christian Graus

            I don't see how that's possible. You can scroll through the items, but can't select one ? What are you clicking, the items in a drop down list that appears ? Of course, the code you posted is broken, it would not even compile. what does your code really look like ?

            Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

            D Offline
            D Offline
            Denver Thomas
            wrote on last edited by
            #5

            sorry ..friend , I cant copy and paste code from here.That code is just a sample. Here is the format combobox1.DataSource=dataset1.Tables[0]; combobox1.DisplayMember="Name of column to be displayed"; combobox1.ValueMember="Name of column to be added as value";

            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