MY C# app workd fine and stays on top whenever asked to. What I face and want is :
Suppose my app is open and another app (say Notepad) is also opened halfly overlapping my app window. When we click anywhere on Notepad, it gets activated. Whereas with my app, I got to click the top bar of the window to make it active. Why so ? I want to make my app active and bring to front when user clicks anywhere on the form and not just hte top bar.
What do I need to set or implement to accomplish this ?
The problem was with overridding WndProc. One unnecessary statement was removed and things got solved out.Thanks to all of you for your efforts.