Simple Listbox questions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Geoff

    #1

    Simple Listbox questions

    Two small problems relating to Listboxes in VB6

    1) How do I copy an item from the list box when selecting
    a particular entry

    2) How do I set tab stops when adding fields to the list
    box.



    Your help is greatly appreciated


  • Jan Hyde

    #2
    Re: Simple Listbox questions

    "Geoff" <gfriar@freenet name.co.uk>'s wild thoughts were
    released on Wed, 4 Oct 2006 21:16:37 +0100 bearing the
    following fruit:
    >Two small problems relating to Listboxes in VB6
    >
    >1) How do I copy an item from the list box when selecting
    >a particular entry
    Your going to have to provide a bit more info.
    >2) How do I set tab stops when adding fields to the list
    >box.
    >
    You don't tab through items in a listbox and therefore there
    are no 'tab stops'



    Jan Hyde (VB MVP)

    --
    Meditation is not what you think.

    Comment

    • Dean Earley

      #3
      Re: Simple Listbox questions

      Geoff wrote:
      Two small problems relating to Listboxes in VB6
      >
      1)How do I copy an item from the list box when selecting a particular
      entry
      Copy to where?
      You can get the items text using combobox.text
      2) How do I set tab stops when adding fields to the list box.
      You send it the LB_SETTABSTOPS with a pointer to an array of tabstop
      positions.

      You can find full information on the message in MSDN.

      --
      Dean Earley (dean.earley@ic ode.co.uk)
      i-Catcher Development Team

      iCode Systems

      Comment

      • Steve Gerrard

        #4
        Re: Simple Listbox questions


        "Geoff" <gfriar@freenet name.co.ukwrote in message
        news:TMGdnZdL8c Iwi7nYRVnyiw@br ightview.com...
        Two small problems relating to Listboxes in VB6
        >
        1) How do I copy an item from the list box when selecting a
        particular entry
        >
        2) How do I set tab stops when adding fields to the list
        box.
        >
        >
        >
        Your help is greatly appreciated
        >
        See Randy Birch's example (and other good stuff):

        VBnet provides Intermediate and Advanced Win32 API code for VB developers. Comprehensive Code, FAQ, Developers Resources & News, alphabetical API/Type/Constant/Method Index, along with the largest Visual Basic-related links list on the net.




        Comment

        Working...