thank you for your reply but the problem is not that ,i knew that and tried but it does not work because,i am creating the control from a dll , i think this is related with the message loop, but i could not find a solution to this this is a relevant link and this was not work also http://support.microsoft.com/kb/187988/en-us[^] thanks