|
-
Aug 17th, 2000, 07:56 AM
#1
Thread Starter
Lively Member
I have a combobox with for example this information :
010, xxx
020, yyy
030, qqq
222, eee
I can make it so that if you press "zero zero" it moves to the "020, yyy". But i want it to move (and display) that line if you press "zero two". Is that possible ?
Here is some code yto put in form_load to fill the combo :
Combo1.AddItem "010, xxx"
Combo1.AddItem "020, yyy"
Combo1.AddItem "030, qqq"
Combo1.AddItem "222, eee"
Yesterday, all my troubles seemed so far away...
Help, I need somebody, Help...
Now MCSD and still locking for intresting job in the south parts of Stockholm, Sweden.
-
Aug 17th, 2000, 09:10 AM
#2
transcendental analytic
I think you have to subclass the combobox for WM_KEYDOWN to avoid it to go automatically and store the keys pressed in a static string. Then you would have to make a search function that selects the corresponding item.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|