Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 making only the close button disapear
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
diqua




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
GlobeTrotter




PostPosted: Mon May 30, 2005 3:57 pm   Post subject: (No 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
betaflye




PostPosted: Fri Jun 03, 2005 1:41 pm   Post subject: (No subject)

Most immediate thing that comes to mind is setting the ControlBox property of the form to false.
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: