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. listbox in vb.net

listbox in vb.net

Scheduled Pinned Locked Moved Visual Basic
csharphelpquestion
8 Posts 5 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.
  • J Offline
    J Offline
    jigneshDPatel
    wrote on last edited by
    #1

    my application in vb.net 2005 i want to change the value of SelectedItem at the runtime ? it is possible Please help on this it's urgent.......

    D P 2 Replies Last reply
    0
    • J jigneshDPatel

      my application in vb.net 2005 i want to change the value of SelectedItem at the runtime ? it is possible Please help on this it's urgent.......

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      aajignesh wrote:

      it is possible

      Why not? The property is "Get or Set".

      aajignesh wrote:

      Please help on this it's urgent.......

      :zzz:

      C isn't that hard: void (*(*f[])())() defines f as an array of unspecified size, of pointers to functions that return pointers to functions that return void "Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live." - Martin Golding

      J 1 Reply Last reply
      0
      • D dan sh

        aajignesh wrote:

        it is possible

        Why not? The property is "Get or Set".

        aajignesh wrote:

        Please help on this it's urgent.......

        :zzz:

        C isn't that hard: void (*(*f[])())() defines f as an array of unspecified size, of pointers to functions that return pointers to functions that return void "Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live." - Martin Golding

        J Offline
        J Offline
        jigneshDPatel
        wrote on last edited by
        #3

        my project in vb.net Please give me some example how i can do this i never use get or set

        I 1 Reply Last reply
        0
        • J jigneshDPatel

          my project in vb.net Please give me some example how i can do this i never use get or set

          I Offline
          I Offline
          Indra PR
          wrote on last edited by
          #4

          Like this?

          Me.ListBox1.SelectedItem = "item1"

          - No Signature Available -

          J 1 Reply Last reply
          0
          • I Indra PR

            Like this?

            Me.ListBox1.SelectedItem = "item1"

            - No Signature Available -

            J Offline
            J Offline
            jigneshDPatel
            wrote on last edited by
            #5

            Ya But that's not work

            J 1 Reply Last reply
            0
            • J jigneshDPatel

              Ya But that's not work

              J Offline
              J Offline
              Jon_Boy
              wrote on last edited by
              #6

              Press F1 and review the help for the listbox so that you understand the basic events and properties of the control.

              Any suggestions, ideas, or 'constructive criticism' are always welcome. "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

              1 Reply Last reply
              0
              • J jigneshDPatel

                my application in vb.net 2005 i want to change the value of SelectedItem at the runtime ? it is possible Please help on this it's urgent.......

                P Offline
                P Offline
                Pasan148
                wrote on last edited by
                #7

                Try with this Listbox1.SelectdIndex = 2 This will select third item of your list box Or Listbox1.SelectedItem = "CCC" 'CCC' represent the item which include in the listbox

                J 1 Reply Last reply
                0
                • P Pasan148

                  Try with this Listbox1.SelectdIndex = 2 This will select third item of your list box Or Listbox1.SelectedItem = "CCC" 'CCC' represent the item which include in the listbox

                  J Offline
                  J Offline
                  jigneshDPatel
                  wrote on last edited by
                  #8

                  Thanks You for Help that's Working.....

                  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