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. Combobox selected item issue

Combobox selected item issue

Scheduled Pinned Locked Moved C#
helpdatabasetutorial
4 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.
  • L Offline
    L Offline
    laziale
    wrote on last edited by
    #1

    Hi there! I am building a win application, and I am stucked at one point and I will appreciate your help, if we can solve this issue together. I have a combobox with more values in it. Depending on the person who is selected from listbox, the value in the combobox is different. I am taking that value from DB and I am holding in a string. I want when someone will select an item from the form, the combobox selected item be the value from the string. I already populate the items in the combobox, I just want to know how to make one of the items to be selected when the person will be selected from the list box. Any kind oh help will be appreciated. Thanks in advance, Laziale

    S X D 3 Replies Last reply
    0
    • L laziale

      Hi there! I am building a win application, and I am stucked at one point and I will appreciate your help, if we can solve this issue together. I have a combobox with more values in it. Depending on the person who is selected from listbox, the value in the combobox is different. I am taking that value from DB and I am holding in a string. I want when someone will select an item from the form, the combobox selected item be the value from the string. I already populate the items in the combobox, I just want to know how to make one of the items to be selected when the person will be selected from the list box. Any kind oh help will be appreciated. Thanks in advance, Laziale

      S Offline
      S Offline
      sailesh_gupta
      wrote on last edited by
      #2

      hey hi, i think u can change the combox selected value changed on list box selected item event.

      1 Reply Last reply
      0
      • L laziale

        Hi there! I am building a win application, and I am stucked at one point and I will appreciate your help, if we can solve this issue together. I have a combobox with more values in it. Depending on the person who is selected from listbox, the value in the combobox is different. I am taking that value from DB and I am holding in a string. I want when someone will select an item from the form, the combobox selected item be the value from the string. I already populate the items in the combobox, I just want to know how to make one of the items to be selected when the person will be selected from the list box. Any kind oh help will be appreciated. Thanks in advance, Laziale

        X Offline
        X Offline
        Xmen Real
        wrote on last edited by
        #3

        combobox.SelectedItem = "item"; or combobox.SelectedIndex = 0; // any item on 0th index

        TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can

        1 Reply Last reply
        0
        • L laziale

          Hi there! I am building a win application, and I am stucked at one point and I will appreciate your help, if we can solve this issue together. I have a combobox with more values in it. Depending on the person who is selected from listbox, the value in the combobox is different. I am taking that value from DB and I am holding in a string. I want when someone will select an item from the form, the combobox selected item be the value from the string. I already populate the items in the combobox, I just want to know how to make one of the items to be selected when the person will be selected from the list box. Any kind oh help will be appreciated. Thanks in advance, Laziale

          D Offline
          D Offline
          Dragonfly_Lee
          wrote on last edited by
          #4

          Listen events from listbox.

          :) I Love KongFu~

          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