Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Showing an item in a ComboBox after typing some keys 1

Status
Not open for further replies.

SitesMasstec

Programmer
Sep 26, 2010
508
Brasil
Hello colleagues!

My problem is similar I had some years ago, but now I want to improve the solution, if any exists:

Please look at these screens (Design and Run):

TelasBuscaNomes1_g0rwcp.jpg


In the ComboBox space to type, I just want to press one or nome keys in order to highlight the first ocurrence, for example, if I just type BAR, it immediately highlights BARTOL IMPORTAÇÃO E EXPORTAÇÃO LTDA. and I can easily select that name.

I have this code in the Form, Procedure Init:
Code:
SELECT CLIENTES
SET ORDER TO CNOME

thisform.cboName.SetFocus

I have tried some code in the KeyPress event, but I failed. I do not know if this is possible in VFP9.


Thank you,
SitesMasstec
 
Well, before using these commands/events in my application, I am testing them in simple forms, just to get them well undesrtood. When I am completely confortable using them I will apply them in my application.


Thank you,
SitesMasstec
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top