Hi George,
Example :
Create a Form Property called ListBoxEnabled with a value of .T.
The listbox and command button should have the following code
ListBox.WhenReturn Thisform.ListBoxEnabled
CmdDisableListBox.ClickThisform.ListBoxEnabled = .F.
That should do it for you.
Regards,
Liam
>except that doesnt work.
>have a code sample?
>
>When i click a command button, i want to diable the Listbox
>and leave the selected items highlighted.
>
>when only fires when control comes alive.
>In this case control is losing focus, when doesnt fire....
Liam O'Hagan
MCP VFP Desktop Apps