Go Back   Forum Care Forums > Development Reference Area > Visual Basic

Reply
 
LinkBack Thread Tools Display Modes
Simple Listbox questions
Old
  (#1)
Geoff
Guest
 
Posts: n/a
Default Simple Listbox questions - 06-04-2007, 10:31 AM

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


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: Simple Listbox questions
Old
  (#2)
Jan Hyde
Guest
 
Posts: n/a
Default Re: Simple Listbox questions - 06-04-2007, 10:31 AM

"Geoff" <EMAIL REMOVED>'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.

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Simple Listbox questions
Old
  (#3)
Dean Earley
Guest
 
Posts: n/a
Default Re: Simple Listbox questions - 06-04-2007, 10:31 AM

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 (EMAIL REMOVED)
i-Catcher Development Team

iCode Systems
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Simple Listbox questions
Old
  (#4)
Steve Gerrard
Guest
 
Posts: n/a
Default Re: Simple Listbox questions - 06-04-2007, 10:31 AM


"Geoff" <EMAIL REMOVED> wrote in message
news:EMAIL REMOVED...
> 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):

http://vbnet.mvps.org/code/listapi/listboxtabs.htm



   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top