Thank you,
I just couldnt figure out where vb.net is hiding all these events.
You are correct, if there is a "X" box a user would expect it to close. I
agree,
I am trying to play with events and disable and enable things to find out
where "everything is" in vb.net
I just found out now how to access all the events on a form. I could never
find them.
I kept pulling up my "form" in my "CLASS NAME" drop down and looked for the
events in the "METHODS" drop down there.
I just now found the Base Class Events ... so i can now see all the events
for the form.
- I couldnt figure out how to access all the other events for the form.
But going back to the original question, I was thinking of a form where the
"X" is showing, but i only allow someone to close
it if an event or something else isnt partially being worked on - that
cannot be stopped 1/2 way thru.
Thank you again,
My basic questions - as basic as they seem, this one turned on a light with
actually being able to find how to access all the events.
Im slowely teaching myself vb.net and having a hard time adjusting to some
things. Im use to using a pure "coder" where everything is written in text.
Miro
"Miro" <mi******@golden.net> wrote in message
news:u$**************@TK2MSFTNGP05.phx.gbl...
I can use the property of the Form to remove the "x" from the top of the
form.
Is there a way in VB to leave the X there but program something so you
cannot close the form?
Or like an ONCLOSE event that you can just put "cancel" ?
If i remember correctly...back in vb 1.0 days or so there was a canclose
on the form.
Form1.canclose = False or something like that.
Im looking thru msdn and all i found so far is the Controlbox Y/N