Click here to Skip to main content
15,891,687 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
I had a CEdit derived class, created it by code and call SetFocus. But it doesnt get focus as expect (nothing happened). Can you tell me how to do that. Thanks very much
Posted
Updated 13-Sep-10 2:38am
v2
Comments
Eugen Podsypalnikov 13-Sep-10 8:53am    
Please post your code here :)

1 solution

hi baby
you must define a variable for CEdit eg: "t1" by
right click on CEdit Control and choos "add variable"
then
on your code write: "t1.SetFocus();"
i wonder it must work
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900