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. List & Select

List & Select

Scheduled Pinned Locked Moved Visual Basic
4 Posts 3 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.
  • W Offline
    W Offline
    WestSideRailways
    wrote on last edited by
    #1

    I have 8 items that i want to list and then select just one at a time and when selected have a differant window pop-up. what would be the best way of doing this. THANKS for your answers

    C 1 Reply Last reply
    0
    • W WestSideRailways

      I have 8 items that i want to list and then select just one at a time and when selected have a differant window pop-up. what would be the best way of doing this. THANKS for your answers

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

      With a listbox, then handle the selection changed event, and work out what popup to show.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      W 1 Reply Last reply
      0
      • C Christian Graus

        With a listbox, then handle the selection changed event, and work out what popup to show.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        W Offline
        W Offline
        WestSideRailways
        wrote on last edited by
        #3

        Dim current_item As Integer = CheckedListBox.SelectedIndex Select Case current_item Case 0 program code Case 1 etc....... Is there another way of doing this??

        J 1 Reply Last reply
        0
        • W WestSideRailways

          Dim current_item As Integer = CheckedListBox.SelectedIndex Select Case current_item Case 0 program code Case 1 etc....... Is there another way of doing this??

          J Offline
          J Offline
          Johan Hakkesteegt
          wrote on last edited by
          #4

          Most likely there are plenty others ways to do it, but what's wrong with this way? Your question suggests that this method doesn't exactly produce the result you were looking for, or you are hoping that there is some more efficient way. Is either one the case?

          My advice is free, and you may get what you paid for.

          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