Hello,
A quick solution is to set the Form's ControlBox property to False. This
will hide everything on the title bar except for the title itself. However,
this does not remove the Alt-F4 functionality.
Also, Herfried K. Wagner posted an idea in a previous thread: "I've put
e.Cancel = True in the Form_Closing event and the users can click the 'X'
all day long without closing the form."
(This comes from
http://groups.google.com/groups?hl=e....phx.gbl#link6 )
Here are a couple threads with examples of making the API call:
http://groups.google.com/groups?hl=e...close%2Bbutton http://groups.google.com/groups?hl=e...close%2Bbutton
Take care,
Eric
"KKuser" <a.*@c.d.com> wrote in message
news:Oi*************@tk2msftngp13.phx.gbl...
Hello:
I currently use
Me.FormBorderStyle = FormBorderStyle.None
to hide the tile bar, but it looks quite ugly.
It's easy to disable the "X" button using VB6, but I really can't find out
any way to do the same thing using VB.Net.
Thanks!!