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. BindingContext???

BindingContext???

Scheduled Pinned Locked Moved Visual Basic
helpquestion
2 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.
  • K Offline
    K Offline
    keninfo
    wrote on last edited by
    #1

    Hello all, Here's my situation: I have a form with a listbox and a textbox, both related with the same collumn of a databasetable. When i click an item in the listbox i want the textbox to show the item as well. I tried the following code in the click event of the listbox: Me.BindingContext(dsGroepAgent, "groep").Position = lstgroepen.SelectedIndex When i click an item in the listbox the following error occured: An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll Any idea?

    K 1 Reply Last reply
    0
    • K keninfo

      Hello all, Here's my situation: I have a form with a listbox and a textbox, both related with the same collumn of a databasetable. When i click an item in the listbox i want the textbox to show the item as well. I tried the following code in the click event of the listbox: Me.BindingContext(dsGroepAgent, "groep").Position = lstgroepen.SelectedIndex When i click an item in the listbox the following error occured: An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll Any idea?

      K Offline
      K Offline
      klaydze
      wrote on last edited by
      #2

      try this one. textbox1.text=listview1.selecteditems(0).subitems(0).text textbox2.text=listview1.selecteditems(0).subitems(1).text ........

      Don't block the drive way of all the newbies in programming. :)

      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