How to put time in any window i.e active window . I mean i want to show this time on every window that i open.for example it may be a note pad,browser.....etc is there any function or should i use any other method.
No easy way I can think of, but it sounds like a waste of time. There's a clock down there in the lower-right corner always showing the time no matter what window is open. Alternatively, you could make a always-on-top tool window (like a gadget) with a clock in it.
I would suggest you the following. Do a find Window and get the handle to the window. Then set the active windows text and then change using the handle till the handle is valid.