2016-10-26 9 views
0

私は在庫管理アプリケーションを作成したいと思っています。コスモマーは、コンボボックスからアイテムを選択し、 /ユーザーがアイテム名を入力すると、コンボボックスが自動的にドロップされ、入力するのと同じアイテム名が表示されます
たとえば、 コンボボックスに「C」と入力すると、コンボボックスが自動的にドロップされ、 "C"で始まる名前 iam vb 6.0を使用 誰かが私を助けることができますか?コンボボックスアイテムの表示方法テキストボックスに入力するアイテム/アイテムのみを表示する

答えて

1

投稿番号6のコードをEmulate the Google search barと考えましたか?

'Combine a TextBox, a ListBox, a Command button, a source array 
'of values, and the Filter() function to create a filtering, 
'auto-completing pseudo combo box. 
' 
'Adjust ZOrder and Visible to make the ListBox "drop and undrop" 
'as we go. Use a Marlett font "u" as a drop-arrow in the 
'Command button. 
' 
'Add a non-enterable prefix character (vbBack here) to make the 
'filtering match only to the right of the filter string. Without 
'this list entries with the substring anywhere within them will 
'match. 
関連する問題