Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 31st, 2004, 07:08 AM
Registered User
 
Join Date: Dec 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default disable close button in mdi form

hai,

Thanks in advance. I can disable the close button using the control box in the forms. but i can't disable the close button in the mdi form. can any one help me. thanks


Kalyanaraman Narayanan
 
Old December 31st, 2004, 07:41 AM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

For MDI form there is no control on Control box.

 
Old January 1st, 2005, 03:55 AM
Registered User
 
Join Date: Dec 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by sivaram
 For MDI form there is no control on Control box.

hai sivaram,

Thanks. But i want to disable that X close button in my application

Kalyanaraman Narayanan
 
Old January 1st, 2005, 04:11 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

You cannot takeout the close button. But, I think, you may prevent closing the window by programming the onUnload event. You can set

Cancel = true

This will nullify the close action.

Please try this. I am not sure about this. I am telling this from my memory.
 
Old January 6th, 2005, 12:31 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

Check whether this would help: http://www.vbcity.com/page.asp?f=howto&p=form_disablex

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
disable the exit button in MDI form gmbalaa General .NET 1 August 11th, 2007 07:53 AM
Modal dialog - Disable Close button itHighway Classic ASP Basics 1 July 31st, 2005 06:36 PM
Modal dialog - Disable Close button itHighway Javascript How-To 1 July 31st, 2005 01:58 AM
how to disable a close button on VB form chanti VB How-To 2 September 30th, 2004 06:21 AM
Disable Close Button Ben Horne Access VBA 1 April 12th, 2004 03:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.