So true - I typically route events to a procedure - so the procedure name would be:
procedure lblMyLabel_Click(oform)
messagebox("My Label Clicked",,oform.name)
endproc
Thanks for catching it - thanks for rubbing my nose in it - thanks for re-instilling my self-destructive tendacies - it will only take 2 months of extensive therapy to work through ir - like I said "THANKS!":-)
>That would rather be this.parent.cboMyCombo.SetFocus - there's no guarantee there's anything named oForm.
>
>>>>Got it you need to reorder the tabindexes so that the control to set focus to comes right after the label with the hot key in the caption
>>
>> ... oops!
>>>
>>>procedure lblMyLabel.Click
>>>oForm.cboMyCombo.Setfocus
>>>endproc
>>>>
>>>>>How can I use a hotkey with a label to setfocus to a combo or some other control that has a setfocus event but no caption property ?
>>>>>
>>>>>I tried to setfocus in the click event of the label thinking this would fire when the hotkey was invoked on the label but that didnt work...
Imagination is more important than knowledge