473,414 Members | 1,667 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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
Oct 4 '06 #1
3 6621
"Geoff" <gf****@freenetname.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.

Oct 5 '06 #2
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 (de*********@icode.co.uk)
i-Catcher Development Team

iCode Systems
Oct 5 '06 #3

"Geoff" <gf****@freenetname.co.ukwrote in message
news:TM********************@brightview.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):

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

Oct 5 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: wallacej | last post by:
I am trying to retrieve a selected value from a listbox and store it in a string (char) variable. I am using the following code: calibIndex=SendMessage(hWnd,(UINT)IDC_LIST_CALIBOPTS,(WPARAM)0,...
4
by: google | last post by:
Hi Heres how the following code works. A user selects a number from a listbox, and then javascript generates that many textboxes. ie. If a user selects 5 from the listbox, then 5 text boxes...
5
by: Lisa | last post by:
Hello, I am new to using recordsets, and i am completly stuck with this one. I am trying to use a multi select list box to write records to a table. Something in my code is causing the same...
0
by: Park via AccessMonster.com | last post by:
I am new to Access and am having a problem with a simple listbox. This listbox is in a subform and contains 5 options. I entered these in a value list. There are two behaviors that I don't know how...
0
by: Oren | last post by:
Hi I have 2 simple questions and hope someone can help me 1) I have an aspx page with the Control: HTML ListBox on it (runat=server). I'm adding options in JavaScript .... mySelect =...
8
by: Steve Schroeder | last post by:
For some reason I cannot get the OnSelectedIndexChanged event to fire for a listbox I have on a page. I'm able to populate the listbox with data from a stored procedure, but cannot trigger the...
6
by: Paul | last post by:
Hi All, Framework 1.1 listbox control unable to DataBind I've been googling for an answer to this query that appears quite a lot, but none, it seem, answers my problem directly. I am...
3
by: deejayquai | last post by:
Hello Simple one this I guess, but I'm quite stuck at the moment. I would like to update the records displayed in my listbox (lstStudents) using criteria selected from my combo (cboForm) in a...
5
by: Academia | last post by:
(If you've seen this in the drawing NG, sorry. I inadvertently sent it there.) I have a listbox populated with Objects. The Class has a String field that ToString returns. I assume that...
1
by: John | last post by:
Hi I have a few questions regarding Listbox; 1. How can I fill Listbox from an access table with multiple columns? 2. How can I return the user selected (highlighted) items in a Listbox...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.