The window's properties has already be set to ';always on top'; and e.cancel function has been used to prevent the form from closing, however other windows can still be used and the form can be positioned off screen which i do not want. Any help or insight would be appreciated however VB 2008 code only.VB 2008 Code: How do i make a window so that no other window behind it can be accessed.?
If you remove the form border, nobody will be able to move it at all. You would just put a close button somewhere on the form.
1. Set the FormBorderStyle Property to ';None';
2. Set the StartPosition Property to ';Center Screen';
This in addition to setting TopMost to ';true.';VB 2008 Code: How do i make a window so that no other window behind it can be accessed.?
This is one of the better VB Reference books - go out and buy it...
http://eu.wiley.com/WileyCDA/WileyTitle/鈥?/a>
Online Reference
http://msdn.microsoft.com/en-us/library/鈥?/a>
To answer your question
';To make something stay on top in VB.NET, all you have to do is set the TopMost property to True and the form will stay in the zero z-order position';
To lock out other windows in the same application
';Modal window will NOT ALLOW user to move another window without closing it. For example : Form.Show, vbModal will display a Modal Window';
No comments:
Post a Comment