I make window with custom control that I can drag. There are window\'s code and custom control\'s code:
window\'s code: