
-----------------------------------
diqua
Mon May 30, 2005 1:38 pm

making only the close button disapear
-----------------------------------
how can i make the close button disappear on a form but still keep the icon?

-----------------------------------
GlobeTrotter
Mon May 30, 2005 3:57 pm


-----------------------------------
If you mean disabling it, I'm not exactly sure how to grey it out, nor am I sure its possible.  To disable the form from closing when you click it is possible, however.  Simply put this in your code.


Private Sub Form_Unload(Cancel As Integer)
    Cancel = True
End Sub


-----------------------------------
betaflye
Fri Jun 03, 2005 1:41 pm


-----------------------------------
Most immediate thing that comes to mind is setting the ControlBox property of the form to false.
