Computer Science Canada

making only the close button disapear

Author:  diqua [ Mon May 30, 2005 1:38 pm ]
Post subject:  making only the close button disapear

how can i make the close button disappear on a form but still keep the icon?

Author:  GlobeTrotter [ Mon May 30, 2005 3:57 pm ]
Post subject: 

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.

VisualBASIC:

Private Sub Form_Unload(Cancel As Integer)
    Cancel = True
End Sub

Author:  betaflye [ Fri Jun 03, 2005 1:41 pm ]
Post subject: 

Most immediate thing that comes to mind is setting the ControlBox property of the form to false.


: