Can any one help me to display Notify Window(LIKE MSN messenger window, pop up on right hand corner) on top of each other and not in front of each other?
Any Suggestions
Thanks in advance
Shash
Printable View
Can any one help me to display Notify Window(LIKE MSN messenger window, pop up on right hand corner) on top of each other and not in front of each other?
Any Suggestions
Thanks in advance
Shash
You can get the necessary information to position a window from the members of
System.Windows.Forms.SystemInformation
You can then create your form in an appropriate postion and possibly make it top most, or certainly put focus to it :
Darwen.
Hi
I have written the code and everything is ready from my side..but I am not getting how to display it on top of other window and NOT in front of other window?
Any Suggestions....
Thanks
Shash
does the TopMost property of window helps you ?
Hi
I am sorry but I did not get what does TopMost property of Window mean?
Thanks
shash
Okay, do you have sample code and can you attach zip file here. ?
thanks
Paresh.
This what information available in my code about notify window.Any suggestions Please...
StartPosition = System.Windows.Forms.FormStartPosition.Manual;
--------------------------------------------------------------------------------------------------------
// SetWindowPos()
protected const Int32 HWND_TOPMOST = -1; //-1
protected const Int32 SWP_NOACTIVATE = 0x0010; //0x0010
--------------------------------------------------------------------------------------------------------
// user32.dll
[DllImport ("user32.dll")]
protected static extern bool ShowWindow (IntPtr hWnd, Int32 flags);
[DllImport ("user32.dll")]
protected static extern bool SetWindowPos (IntPtr hWnd, Int32 hWndInsertAfter, Int32 X, Int32 Y, Int32 cx, Int32 cy, uint uFlags);
Thanks
shash