Ian Taite wrote:
> I have a form with a listview working quite happily.
> Before the form is shown, the listbox is filled with
> data. How do I arrange for the first item shown in the
> listbox to be selected before the form is shown?
> If I have to use Win32-API to send the control a
> message, how do I do that?

    # create objects...
    # fill the listview...

    $form->listview->Select(0); # this does the trick
    $form->Show();

    # script goes on...

of course, replace the names I've used ($form, listview)
with yours :-)

cheers,
Aldo




Reply via email to