borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Encryption of TextField)Next Topic (VB 6.0 to PPC) New Topic New Poll Post Reply
AndreaVB Forum : Pocket PC : hiding the closing box "X" in an application
Poster Message
Williamr
Level: Protégé

Registered: 01-06-2005
Posts: 5

icon hiding the closing box "X" in an application


Hi

I am trying to hide or turn off the visibility of the closing box on my application, but i have not found a way to do it.

The reason is that everytme this box is tapped, the application does not really close, it gets minimized, and this way i force the user to use the button I added.

Regards

24-03-2006 at 01:57 PM
View Profile Send Email to User Show All Posts | Quote Reply
admin
Level: Administrator


Registered: 04-04-2002
Posts: 530
icon Re: hiding the closing box "X" in an application

If you want to close your application (not to minimize it), you need to display an OK button instead of the default X button.

How to display the OK button in VB.NET:

add the following statements.
            
Me.ControlBox = True
Me.MinimizeBox = False

To change back to the X button, set MinimizeBox to true.

To display no buttons, set ControlBox to false

____________________________
AndreaVB

24-03-2006 at 02:23 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : Pocket PC : hiding the closing box "X" in an application
Previous Topic (Encryption of TextField)Next Topic (VB 6.0 to PPC) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder