General information
Category:
Forms & Form designer
Problem was fixed by adding Thisform.PageFrame1.Page1.Command2.SetFocus() in Thisform.Init().
Maybe problem was created because there is an OleControl in page1?
Thanks,
Alex
>Hi,
>
>A form has a pageframe an in a page a command button for which I set Cancel .T., wishing it to respond to escape key. However, the escape key does not cause the commandbutton click to fire. Next I added code in Thisform.KeyPress and Thisform.KeyPreview = .T., but still no response to Escape key.
>
>What am doing wrong?
>
>Thanks,
>
>Alex
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only