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. Visual Basic
  4. combobox event

combobox event

Scheduled Pinned Locked Moved Visual Basic
database
4 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.
  • M Offline
    M Offline
    manni_n
    wrote on last edited by
    #1

    i have a combobox and a textbox names are there in combobox list i want if i have selected any name from combobox respective surname should come down in textbox from database instantaneously leave database connectivity that i'll take care... i want front hand method....

    P 1 Reply Last reply
    0
    • M manni_n

      i have a combobox and a textbox names are there in combobox list i want if i have selected any name from combobox respective surname should come down in textbox from database instantaneously leave database connectivity that i'll take care... i want front hand method....

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      manni_n wrote:

      want front hand method....

      Have you tried to solve the problem yourself? It sounds like you are asking someone to do your work for you. ComboBox.SelectedText will give you the currently selected text. Use this value in a query to get the surname.

      manni_n wrote:

      respective surname should come down in textbox from database instantaneously

      Somehow I think this is unlikely.

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      M 1 Reply Last reply
      0
      • P pmarfleet

        manni_n wrote:

        want front hand method....

        Have you tried to solve the problem yourself? It sounds like you are asking someone to do your work for you. ComboBox.SelectedText will give you the currently selected text. Use this value in a query to get the surname.

        manni_n wrote:

        respective surname should come down in textbox from database instantaneously

        Somehow I think this is unlikely.

        Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

        M Offline
        M Offline
        manni_n
        wrote on last edited by
        #3

        thanks for your answer buddy but you didnt get that problem exactly .. i don't want selected item. it can be easily obtained from selecteditem. i want an event whenever item gets selected its respective database value gets filled in textbox. anyways i have solved the problem ComboBox1_SelectionChangeCommitted event can serve the purpose by putting query in this event. and binding the surname value in textbox

        P 1 Reply Last reply
        0
        • M manni_n

          thanks for your answer buddy but you didnt get that problem exactly .. i don't want selected item. it can be easily obtained from selecteditem. i want an event whenever item gets selected its respective database value gets filled in textbox. anyways i have solved the problem ComboBox1_SelectionChangeCommitted event can serve the purpose by putting query in this event. and binding the surname value in textbox

          P Offline
          P Offline
          pmarfleet
          wrote on last edited by
          #4

          When it comes to advice, the old adage 'garbage in, garbage out' applies :). Anyway, well done with solving the problem yourself.

          Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

          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