473,322 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Can I prevent user to press cross button. (Quit Application)?

neo008
85
Hi All,

Can I prevent user to press cross button?

I want to disable all three buttons for minimize, maximize and close for parent as well as child window.

Is it possible? I'm using VB6.


Can somebody help in this.

-NE☼
Aug 3 '07 #1
4 1735
Killer42
8,435 Expert 8TB
Not sure about the parent/child thing, but turning off the ControlBox property will remove the "x button".

Or you can just cancel the unload attempt in the Form_QueryUnload event. But if you do this, make sure you check UnloadMode. If you just cancel every attempt to unload the form, your application can never finish.
Aug 4 '07 #2
neo008
85
Not sure about the parent/child thing, but turning off the ControlBox property will remove the "x button".

Or you can just cancel the unload attempt in the Form_QueryUnload event. But if you do this, make sure you check UnloadMode. If you just cancel every attempt to unload the form, your application can never finish.

Thanks Killer,

I just check it out.

I rate you "Excellent". :D


-NE☼
Aug 5 '07 #3
neo008
85
Hi Killer,

Control box property has well worked but I also want to do same with MDI form.

I did not find any control box property for MDI form but I really want to make invisible all three control buttons for it.

With Unload event I have to code for multiple conditions moreover it won't look good in user's perspective.


How can I achieve that. can you help


-NE☼
Aug 5 '07 #4
Killer42
8,435 Expert 8TB
Control box property has well worked but I also want to do same with MDI form. ...
Sorry, haven't worked with MDI forms in many, many years.

It might be a good idea to start a new thread to ask specifically about the MDI form issue. A lot of people probably won't bother looking at this one now, because it already has a ton of replies.
Aug 5 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Khor | last post by:
Does anyone know to . Prevent current user to access page previous page by pressing back button after the user had logging off his/her account If the user press the back button, the web should...
9
by: Daniel Walzenbach | last post by:
Hi I am faced with the following problem: I have a page (let’s call this page page1.aspx) containing some TextBoxes and a hyperlink which opens another page (let’s call this page page2.aspx)...
2
by: kevininstructor | last post by:
I want to prevent a user from closing an application while doing critical operations. The following code (concept came from MSDN) works except for when the user attempts to terminate via "Task...
2
by: Lauren Wilson | last post by:
Hi folks, I believe I have seen this in this group in the past but my search comes up with nothing so far. I want to prevent our Access application from closing without some kind of...
7
by: korund | last post by:
I want solve a small problem. Since javascript can't read and write as a file, VBScript is used in a code. When a user click's on a 'Yes' button on a Internet Explorer activeX prompt, a VBScript...
3
by: aspmonger | last post by:
Hello, I really believe that IE 6 has a new (intentional?) bug that severely limits the capability of dhtml and cross domain scripting. Yesterday, I read an interesting article about the subject and...
0
by: josephkorn | last post by:
Hi all. I have a problem in my website in trying to prevent a user from double submitting the form. I am calling a subroutine from my page_load event that passes in the commandbutton that I want...
4
by: eighthman11 | last post by:
this is probably very simple but I don't know. Is there a way to prevent two people from signing on to an Access Application using the some login information???? I can't have two people on the...
23
by: andyoye | last post by:
How can I launch Outlook on users machines when they click a button on a web form (InfoPath)? Thanks
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.