Creating Topmost Nonmodal Windows


As you're probably aware, when you click a window it usually comes to the foreground, and all other windows are shown behind it (unless it's a modal window). At times, you might want a window to stay on top of other windows, regardless of whether it's the current window (that is, it has the focus). An example of this is the Find window in Visual C# and other applications such as Word. Regardless of which window has the focus, the Find form always appears floating over all other windows. Such a window is created by setting the form's TopMost property to True. Not exactly rocket science, but that's the point: A simple property change or method call is often all it takes to accomplish what might otherwise seem to be a difficult task.




Sams Teach Yourself Microsoft Visual C# 2005 in 24 Hours, Complete Starter Kit
Sams Teach Yourself Visual C# 2005 in 24 Hours, Complete Starter Kit
ISBN: 0672327406
EAN: 2147483647
Year: N/A
Pages: 248
Authors: James Foxall

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net