Quote:
yes i want to click the button from code.
if variable entered in edit control box is even then button get clicked.
This is a bad idea !
Imagine the user want to enter the even number 123456.
As the user type the number, you have:
1 => odd
12 => even
123 => odd
1234 => even
12345 => odd
123456 => even
When do you click your button ?
Imagine the user want to enter the even number 246.
As the user type the number, you have:
2 => even
24 => even
246 => even
When do you click your button ?
This kind of situation is the reason why clicking on button is left to user.