Problem with combo boxes

R

raj

I really do need nelp with this



I've gotta timesheet application developed inVB6.0

Application it self has a VB datagrid with few columns. Drop down Combo
boxes with values are consist of each column.

In the First column, user is able to select a "Program Name" from the drop
combo box.

For example assume we have Program Name A, B, C, and D. User is able to
select A, B, C, or D by using the mouse click.

I want when the Program combobox got focus in the datagrid, rather than
clicking on that combo box, user is able to key in the first letter of the
program, so it automaticall scroll to the Program Name. Then the combo box
automatically select and display program. This happens only if I dropped the
program list down by clicking the mouse. But how should I do this when the
focus got into the combo box. I do not want to click the combo box I just
want to key in the "Program Name" first letter (once it got focus) so the
list automatically scroll to the relevent "Program Name".

I really appreciate anyone's ideas or suggetions.



Cheers



raj
 
A

Amanda Payton

Raj -

I don't normally program directly in VB 6, but I do use VBA quite a bit with
MS Access programming. Here's my thought for you.

Look at the properties for your combo box. See if there is a property
somewhere titled "auto expand". Set this to yes. What this property should
do is tell the computer to make it's best guess as to what you're trying to
input, based on what has been typed in so far.

(you might also want to set "limit to list" to yes as well, so your users
can't confuse the computer by asking for something that doesn't exist on the
list.)

HTH
Amanda
 
R

raj

There is no such a field like that

Amanda Payton said:
Raj -

I don't normally program directly in VB 6, but I do use VBA quite a bit with
MS Access programming. Here's my thought for you.

Look at the properties for your combo box. See if there is a property
somewhere titled "auto expand". Set this to yes. What this property should
do is tell the computer to make it's best guess as to what you're trying to
input, based on what has been typed in so far.

(you might also want to set "limit to list" to yes as well, so your users
can't confuse the computer by asking for something that doesn't exist on the
list.)

HTH
Amanda
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top