473,654 Members | 3,022 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

disable close item of window

Hi, All,

I use vb 2005 to create window app, and try to disable close button/item on
the top right coner of window, can anyone can help this out?

Thanks for yuor time,

Martin
Mar 8 '07 #1
3 2225
"martin1" <ma*****@discus sions.microsoft .comschrieb:
I use vb 2005 to create window app, and try to disable close button/item
on
the top right coner of window, can anyone can help this out?
Take a look at the code snippets in the following article:

<URL:http://dotnet.mvps.org/dotnet/code/forms/#NoClose>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Mar 8 '07 #2
Thank you. That works.

Also I have old window app wroten by VB6, and need to disable close item
too, any more clue?

Martin

"Herfried K. Wagner [MVP]" wrote:
"martin1" <ma*****@discus sions.microsoft .comschrieb:
I use vb 2005 to create window app, and try to disable close button/item
on
the top right coner of window, can anyone can help this out?

Take a look at the code snippets in the following article:

<URL:http://dotnet.mvps.org/dotnet/code/forms/#NoClose>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Mar 8 '07 #3
"martin1" <ma*****@discus sions.microsoft .comschrieb:
Also I have old window app wroten by VB6, and need to disable close item
too, any more clue?
<URL:http://dotnet.mvps.org/vb/code/forms/#RemoveSystemMe nuItem>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Mar 9 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
9768
by: lori3laz | last post by:
How do you disable the right click>view source option on web pages so people can't view your coding and copy it? What's the html I need to include in my website to utilize this feature? Thank you.
3
2983
by: bobdydd | last post by:
Hi Everybody On Report Preview Does anyone know of a way to disable the Minimum, Maximum and Close buttons, so that the user cannot close by any other means that the Toolbar button that I have supplied. This is easy enough on Access 2000 FORMS in Properties>>Format etc, but this is not available on a REPORT.
2
3240
by: RJN | last post by:
Hi I have a Popup window which has a Close button onclick of which I do some database operations. I want to ensure that , user doesn't close the window by clicking on X(Top right corner) and hence would like to disable it. Is there a way to do this in javascript when I popup a window. ofcourse I want the Title bar. Regards
3
2597
by: Paul | last post by:
Hi, just wondering if there is a way to disable the back button of the browser as I have a logoff page and would like to not allow the back operation? Guessing there may be a way to do it through java script. -- Paul G Software engineer.
0
1453
by: JP | last post by:
Is there a way to temporirly disable the X button (close) on a MODAL window in the web browser? We have cleanup code that needs to run after the user closes the modal window. This works fine if the user closes the window via a button I have placed on the page. If the user tries to close the window via the "X", then popup blockers potentially pervent then cleanup window from executing. Right now, clicking the X fires off the...
6
10120
by: ron | last post by:
1. Can I disable a user control in a web page? 2. Can I disable the 'close' function on the top-right corner of a popup window, so I can use code-behind function to close the browser?
1
1676
by: jamesdel | last post by:
Hi I know how to disable the close button of the main access window. But i am not able to disable the maximum button. Can anyone help me in this regard. It certainly needs API function calling procedure. So anybody who is good in API can help me. I have disable the close button through this. But when i am trying to disable the maximum button using this same technique i am not getting the correct result. John
1
1500
by: wolf18 | last post by:
I am running a business and I have a forum on it but I do not want under 18's to access it due to that its for booking and to hire, anyway what ive done is ive created a link that says "Leave (Iam not 18 or over)" and this resolves in window.close, example: <html> <body>
4
2484
by: sasimca007 | last post by:
Hello friends, In my project, i am opening a window with javascript, in that new window i am providing a link to close that window, then there is no use of default close button of that window. So, i want how to disable or remove that close button of that window through javascript?
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8482
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8593
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7306
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2714
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.