Board index » delphi » FileListBox question
gprd...@zipworld.com.au (Gery Rohrig)
![]() Delphi Developer |
Fri, 07 Feb 2003 08:15:58 GMT
|
gprd...@zipworld.com.au (Gery Rohrig)
![]() Delphi Developer |
Fri, 07 Feb 2003 08:15:58 GMT
FileListBox question
Hi to all and thanks for any replay's
I have in a filelistbox about 200 (Stock) files. Here comes the question: What have I to do, to get this files at the I did try to pass the Flbox.itemindex to Flbox.topindex. Regards Gery www.zipworld.com.au~gprdata |
Bob Brow
![]() Delphi Developer |
Tue, 18 Feb 2003 07:47:39 GMT
Re:FileListBox questionHi Gery, Just had a play around and found that if you don't attach any code to the Try this - it seems to work fine for me - in particular note the Key:=#0 procedure TForm1.ListBox1KeyPress(Sender: TObject; var Key: Char); ListBox1.ItemIndex:=C; Key:=#0; // Toss away the keystroke - don't let the listbox see it! Cheers, - Bob - QuoteGery Rohrig wrote in message <399faab5.2062...@news.zipworld.com.au>... |
M.H. Avegaar
![]() Delphi Developer |
Tue, 18 Feb 2003 15:37:34 GMT
Re:FileListBox questionYou are forgetting error-checking: procedure TForm1.ListBox1KeyPress(Sender: TObject; var Key: Char); "Bob Brown" <nab...@opus.co.nz> schreef in bericht Quote> Hi Gery, |