I am developing an application for a WindowsCE device. Within my application I have five Panels, in which only one of them is visible at time.
Each panel has many different components, however, one of those many components is a button which has an unique Tag property set to btnOK
.
Keeping in mind that each Panel has one of those unique buttons, and each of those buttons has a different function:
How can I get my "Enter" KeyPress event to find the Visible OK button and perform a click?
try creating a function:
use the function like this:
this assumes your button click event looks like this...