Question:
VB 2008 Code: How do i make a window so that no other window behind it can be accessed.?
technoLover
2008-09-23 06:38:08 UTC
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.
Three answers:
Big John Studd
2008-09-23 06:57:38 UTC
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."
JA12
2008-09-23 06:48:20 UTC
This is one of the better VB Reference books - go out and buy it...

http://eu.wiley.com/WileyCDA/WileyTitle/productCd-0470182628.html



Online Reference

http://msdn.microsoft.com/en-us/library/2x7h1hfk.aspx



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"
jasvant
2017-01-01 17:12:20 UTC
1st step: specific the style to a table. 2d step: create an append question (appending from the table bounded on your style to the table you like the data to be saved) 0.33 step: create a macro the placement you assign the append question 4th step: create a button on your style with that macro assign to the On enter journey. P.S. it incredibly is needed to which you create a delete question an run it after the append question. with the help of doing this, you stay clean of duplicated data on your very very final table. you're able to desire to placed the delete question proper after the append question indoors the macro movements. good fulfillment, and talk.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...