Click to See Complete Forum and Search --> : Notify Window


shash
August 20th, 2004, 02:07 PM
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

darwen
August 20th, 2004, 05:22 PM
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.

shash
August 24th, 2004, 12:21 PM
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

pareshgh
August 24th, 2004, 05:02 PM
does the TopMost property of window helps you ?

shash
August 25th, 2004, 07:25 AM
Hi
I am sorry but I did not get what does TopMost property of Window mean?
Thanks
shash

pareshgh
August 25th, 2004, 04:19 PM
Okay, do you have sample code and can you attach zip file here. ?

thanks
Paresh.

shash
August 26th, 2004, 07:04 AM
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