General information
Category:
Forms & Form designer
Hi,
I just set KeyPreview of the form to true and it worked.
Thanks any way
>Have you tried putting your code into a function and using 'ON KEY LABEL LEFTARROW' (etc) to call the function?
>
>Alan
>
>>Hi Sergey,
>>
>>This is a form with 256 shapes which represent 256 colors. Right now I move between these shapes by clicking mouse on them (another shape will be shown around the active color). This is easy by mouse, but I want to do it like what we do in GetColor() form by pressing arrow keys. I put codes in Keypress method of the form, but when I apply arrow keys, it switches between my command buttons in the form.
>>
>>Hopefully, it makes sense.
>>
>>Thank you,
>>Ali
>>
>>>Ali,
>>>
>>>Can you provide more details? Are controls on that form placed in rows and columns as in GetColor()?
>>>
>>>>
>>>>I would like to have a control move all over the form by arrow keys. (exactly like what we do in GetColor() form to change the current color.) How can I do that?
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