Friends, In VB.net Form properties, There are Maximize Box and Minimize Box.If we make them false, those prperties will be disabled.Likewise there is a Close Box at the right top corner of the form.How can we disable this? Is there any way at design time to disable this? If not,Can we disable it through code?
You could set the FromBorderStyle property to None.
In the FormClosing you could always do
e.Cancel = True
But you should also give the user some other way to exit. For example, if the user selects Exit from a menu you could set a class flag as in
Private ReallyExit As Boolean = False Private Sub Form1_FormClosing(sender As System.Object, e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing e.Cancel = ReallyExit End Sub
Just make sure that somewhere in your code you do
ReallyExit = True
Edited by Reverend Jim
Thank you all ..Making Formboarder style to None is easier and convenient..
I am currently practicing my java skills by doing this program called car rental management system. I am creating a login page where when the user login it ...
Hi. I have a .raw file and I want to display it as hex. why? because i want to try and replicate what 010 Editor can do which is read ...
I was wondering what would be the best way to implement an algorythm to figure out what side a circle has collided with a rectangle?
After check to make sure ...