| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
|
| Dear reader, By opening an application I get always the main Access window with the closing cross [x] in the above right corner. Is there a possibility to make this closing cross invisible? All the settings in the Start-up form under Tools are disabled but the closing cross in the above right corner is still visible. Thanks for any help. Kind regards, Simon |
|
#2
|
| On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek" That's not impossible, but not easy either. What are you trying to accomplish? That users can't close your app? There are other ways to do that (e.g. see Cancel argument of Form_Unload). Remember some of them will use Task Manager to nuke your app if you go down that way. You can intercept that as well, but at an even higher cost. So what are you really trying to accomplish? -Tom. Microsoft Access MVP >Dear reader, > > > >By opening an application I get always the main Access window with the >closing cross [x] in the above right corner. Is there a possibility to make >this closing cross invisible? > >All the settings in the Start-up form under Tools are disabled but the >closing cross in the above right corner is still visible. > > > >Thanks for any help. > >Kind regards, > >Simon > |
|
#3
|
| Tom, I try to accomplish that users can't close the application with this button [x] but they have to close the application via a form. -Simon "Tom van Stiphout" news:dvp6b4d95esjkoho5f5kna4k9u7b2dksii-at-4ax.com... > On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek" > > > That's not impossible, but not easy either. What are you trying to > accomplish? That users can't close your app? There are other ways to > do that (e.g. see Cancel argument of Form_Unload). Remember some of > them will use Task Manager to nuke your app if you go down that way. > You can intercept that as well, but at an even higher cost. > > So what are you really trying to accomplish? > > -Tom. > Microsoft Access MVP > > >>Dear reader, >> >> >> >>By opening an application I get always the main Access window with the >>closing cross [x] in the above right corner. Is there a possibility to >>make >>this closing cross invisible? >> >>All the settings in the Start-up form under Tools are disabled but the >>closing cross in the above right corner is still visible. >> >> >> >>Thanks for any help. >> >>Kind regards, >> >>Simon >> |
|
#4
|
| I hace a form ( Very Very old switchboard form probably from Access 2.) This is always sitting behind anything else that is open. Briefly it has a text box "CloseOK" which is either set to 1 0r 0 and a command button "CloseDB" I hide the CloseOK Text box by making the border transparent and the font colour the same as the background ans sometimes lock the control CloseOK is set to 0 on opening the form Then there is this bit of code which stops the form and consequently the Database from closing Private Sub Form_Unload(Cancel As Integer) If CloseOK = 0 Then ' Must keep the switcboard open DoCmd.CancelEvent End If End Sub On pressing the CloseDB button we have Sub CloseDB_Click CloseOK = 1 ' OK to close database RunCommand acCmdExit Exit Sub In practice I have all sorts or routines that check whether I am using an MDB file (for developement purposes) where I can still access the CloseOK control and an MDE file where it is not accessible .... but there I agree with Tom , it does get complicated HTH Phil "Simon van Beek" news:48b38f25$0$13008$bf4948fe-at-news.tele2.nl... > Tom, > > I try to accomplish that users can't close the application with this > button [x] but > they have to close the application via a form. > > -Simon > "Tom van Stiphout" > news:dvp6b4d95esjkoho5f5kna4k9u7b2dksii-at-4ax.com... >> On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek" >> >> >> That's not impossible, but not easy either. What are you trying to >> accomplish? That users can't close your app? There are other ways to >> do that (e.g. see Cancel argument of Form_Unload). Remember some of >> them will use Task Manager to nuke your app if you go down that way. >> You can intercept that as well, but at an even higher cost. >> >> So what are you really trying to accomplish? >> >> -Tom. >> Microsoft Access MVP >> >> >>>Dear reader, >>> >>> >>> >>>By opening an application I get always the main Access window with the >>>closing cross [x] in the above right corner. Is there a possibility to >>>make >>>this closing cross invisible? >>> >>>All the settings in the Start-up form under Tools are disabled but the >>>closing cross in the above right corner is still visible. >>> >>> >>> >>>Thanks for any help. >>> >>>Kind regards, >>> >>>Simon >>> > > |
|
#5
|
| "Simon van Beek" news:48b38f25$0$13008$bf4948fe-at-news.tele2.nl... > Tom, > > I try to accomplish that users can't close the application with this > button [x] but > they have to close the application via a form. > Is this because you want an event to run when the form closes? The easist way to force this to happen is the hide the database window using the Tools/Startup options. Also, check out the "popup" and "modal" form properties. Regards, Keith. |
|
#6
|
| I wonder why MS put that silly close button there anyway. Why would we want a GUI common to all our applications? Some developers envision their own GUI that is so superior to the Windows standard that its implementation makes sacrificing uniformity quite worthwhile. What I can't understand is why there is an inverse relationship between the competence of the poster and this design brilliance. How can one be sufficiently creative to generate these new design ideas without actually knowing anything about how the old is effected, or how the new might be implemented? This is where I fail. Having struggled with the Windows API extensively for ten or twelve years, I can pretty much do whatever I want with the GUI but I never feel motivated to do so. I have this quaint notion that if Sharon can close a Word document by clicking a red X in its upper right hand corner, it make sense for Sharon to be able to close Access applications and forms by clicking red X's in their upper right hand corner. I suppose a very few might have painted-themselves-into-a-corner through idiotic design and extraordinarily foolish coding. But you only see that in 95% of the posts here. Well ... 99.44% max! On Aug 26, 1:05*am, "Simon van Beek" > Tom, > > I try to accomplish that users can't close the application with this button > [x] but > they have to close the application via a form. > > -Simon > "Tom van Stiphout" > > > > > On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek" > > > > > That's not impossible, but not easy either. What are you trying to > > accomplish? That users can't close your app? There are other ways to > > do that (e.g. see Cancel argument of Form_Unload). Remember some of > > them will use Task Manager to nuke your app if you go down that way. > > You can intercept that as well, but at an even higher cost. > > > So what are you really trying to accomplish? > > > -Tom. > > Microsoft Access MVP > > >>Dear reader, > > >>By opening an application I get always the main Access window with the > >>closing cross [x] in the above right corner. Is there a possibility to > >>make > >>this closing cross invisible? > > >>All the settings in the Start-up form under Tools are disabled but the > >>closing cross in the above right corner is still visible. > > >>Thanks for any help. > > >>Kind regards, > > >>Simon |
|
#7
|
| Dear all, In the form Tools/Startup….. I can’t find a tick box to make the Windows window invisible. And now I am look for code how to make the Windows window invisible so the user can only close the application via a form. -Simon "Keith Wilby" news:48b3c4ff$1_1-at-glkas0286.greenlnk.net... > "Simon van Beek" > news:48b38f25$0$13008$bf4948fe-at-news.tele2.nl... >> Tom, >> >> I try to accomplish that users can't close the application with this >> button [x] but >> they have to close the application via a form. >> > > Is this because you want an event to run when the form closes? The easist > way to force this to happen is the hide the database window using the > Tools/Startup options. Also, check out the "popup" and "modal" form > properties. > > Regards, > Keith. |
|
#8
|
| To make the Windows windows invisible you can: 1. Turn off your computer; 2. Use Linux; 3. Press 4. Drape your last pervious sex partner's undies over the monitor (may smell if they are animal skins!). 5. Add this key to the registry: HKEY_LOCAL_MACHINE\System \CurrentControlSet\Services\i8042prt\Parameters\Cr ashOnCtrlScroll and set its value to 1; later press control and scroll lock at the same time. I'm sure there are other ways. In your case, I recommend: 6. Don't turn the computer on. On Aug 26, 6:58*pm, "Simon van Beek" > Dear all, > > I can’t find a tick box to make the Windows > window invisible. |
|
#9
|
| On Tue, 26 Aug 2008 07:05:31 +0200, "Simon van Beek" Hi Simon, I would phrase it a bit more elegantly than Lyle, but I do feel he is right on the substance. It is REALLY unusual to require this sort of functionality; there usually is a MUCH better and more compatible alternative. I hope you won't be offended and will take the criticism to heart. Perhaps you will post a new message that starts with: "I want to do ABC and the best way I can think of doing that is to diable the Close Application button. Can you suggest better alternatives?" -Tom. Microsoft Access MVP >Tom, > >I try to accomplish that users can't close the application with this button >[x] but >they have to close the application via a form. > >-Simon >"Tom van Stiphout" >news:dvp6b4d95esjkoho5f5kna4k9u7b2dksii-at-4ax.com... >> On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek" >> >> >> That's not impossible, but not easy either. What are you trying to >> accomplish? That users can't close your app? There are other ways to >> do that (e.g. see Cancel argument of Form_Unload). Remember some of >> them will use Task Manager to nuke your app if you go down that way. >> You can intercept that as well, but at an even higher cost. >> >> So what are you really trying to accomplish? >> >> -Tom. >> Microsoft Access MVP >> >> >>>Dear reader, >>> >>> >>> >>>By opening an application I get always the main Access window with the >>>closing cross [x] in the above right corner. Is there a possibility to >>>make >>>this closing cross invisible? >>> >>>All the settings in the Start-up form under Tools are disabled but the >>>closing cross in the above right corner is still visible. >>> >>> >>> >>>Thanks for any help. >>> >>>Kind regards, >>> >>>Simon >>> > |
|
#10
|
| On Aug 26, 9:53*pm, Tom van Stiphout > I would phrase it a bit more elegantly than Lyle Are you suggesting that "Drape your last previous sex partner's undies over the monitor (may smell if they are animal skins!)." is inelegant? The relationship between undies and Access/VBA is clearly documented at http://www.the-lingerie-post.com/200...-and-swimwear/.. "C-String" is a VBA function name. |
![]() |
| Thread Tools | |
| Display Modes | |