Hi!
I have nothing to say in addition to what Sebastian said. I'm not sure if setting ListIndex in listbox will scroll it automatically. If yes there is another approach, but use of FontMetric() is much simpler ;)
>Hi Vlad,
>
>It looks like this problem is fixed. Uf :) I'm getting so tired of this Data Entry application...
>
>Anyway, now I have another little problem. I have a Lookup form. This form has a listbox. I want ListBox and a form to be automatically resized depending on number of items in listbox and the max width of the listbox item.
>
>I was trying to use FontSize, but it's in points, and form's height in pixels. I sent this form to your e-mail address (clicked on envelope).
>
>Do you have ideas before I get insane? :)
>
>Thanks a million.
>
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.