You may be better off setting this value upon first focus.
Form::Gotfocus
if not pemstatus(this,'lShown',5)
this.addproperty('lshown',.t.)
if this.mylistbox.listcount > 0
this.mylistbox.listindex = 1
endif
endif
Glenn
>I tried that but get an error. I looked at the property in design and the property is disabled and italicized. The listbox is not part of a class. Any ideas?
>
>>In the Init of the listbox put This.ListIndex = 1 && Highlight first row
>>
>>
>>>VFP6 - For some reason I have a listbox that refuses to highlight a row when the form is first initialized. What is the accepted way to do this? The source is an Alias and I'm already making sure I'm on the first record and doing a Refresh of the listbox. Thanks!
>>>
>>>Regards, Renoir