如何使右角闭合不可见 [英] How to make the right corner closing cross invisible

查看:99
本文介绍了如何使右角闭合不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的读者,


通过打开一个应用程序,我总是得到主要的Access窗口,右上角有

结束交叉[x]。是否有可能使这个关闭交叉隐形?


工具下的启动表单中的所有设置都被禁用但是

在右上角关闭十字架仍然可见。


感谢您的帮助。


亲切的问候,


Simon

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

推荐答案

2008年8月26日星期二00:13:06 +0200,Simon van Beek ;

< Sv ******** @ Versatel.nlwrote:


这不是不可能,但也不容易。你想要什么?b $ b完成了什么?用户无法关闭您的应用程序?还有其他方法来执行此操作(例如,请参阅Form_Unload的取消参数)。记住一些

他们将使用任务管理器来破坏你的应用程序,如果你这样做。

你也可以拦截它,但成本更高。


那么你真正想要完成什么?


-Tom。

Microsoft Access MVP

On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
<Sv********@Versatel.nlwrote:

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


>亲爱的读者,

通过打开一个应用程序,我总是获得带有
结束交叉的主Access窗口[x ]在右上角。是否有可能使这个关闭的十字架不可见?

工具下的启动表单中的所有设置都被禁用,但右上角的关闭交叉点是仍然可见。

感谢您的帮助。

亲切的问候,

Simon
>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


汤姆,


我试图完成用户无法使用此按钮关闭应用程序

[x]但

他们必须通过表格关闭申请。


-Simon

" Tom van Stiphout" < no ************* @ cox.netwrote in message

news:dv ***************** *************** @ 4ax.com ...
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" <no*************@cox.netwrote in message
news:dv********************************@4ax.com...

2008年8月26日星期二00:13:06 + 0200,Simon van Beek

< Sv ******** @ Versatel.nlwrote:


这不是不可能的,但也不容易。你想要什么?b $ b完成了什么?用户无法关闭您的应用程序?还有其他方法来执行此操作(例如,请参阅Form_Unload的取消参数)。记住一些

他们将使用任务管理器来破坏你的应用程序,如果你这样做。

你也可以拦截它,但成本更高。


那么你真正想要完成什么?


-Tom。

Microsoft Access MVP

On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
<Sv********@Versatel.nlwrote:

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


>>亲爱的读者,

通过打开一个应用程序,我总是得到带有
结束十字架的主Access窗口[x]在右上角。是否有可能使这个关闭的十字架不可见?

工具下的启动表单中的所有设置都被禁用但
关闭十字架在在右上角仍然可见。

感谢您的帮助。

亲切的问候,

Simon
>>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



我有一个表格(非常非常旧的交换机表格可能来自Access 2.)


这总是坐在后面其他任何开放的东西。简而言之,它有一个

文本框CloseOK它被设置为1 0r 0和命令按钮

" CloseDB"我通过使边框透明隐藏CloseOK文本框和

字体颜色与背景相同ans有时锁定控件


CloseOK设置为0打开表格


然后有一些代码停止表格,因此关闭Db




Private Sub Form_Unload(取消为整数)


如果CloseOK = 0那么''必须保持开关板

DoCmd.CancelEvent

结束如果

结束子


按下CloseDB按钮我们有
Sub CloseDB_Click

关闭OK = 1''确定关闭数据库

RunCommand acCmdExit

退出子


在实践中我有各种各样的例程或例程来检查我是否使用了

MDB文件(用于开发目的),我仍然可以访问CloseOK

控件和MDE文件。是的可以访问....但我同意

与汤姆,它确实变得复杂


HTH


Phil


" Simon van Beek" < Sv ******** @ Versatel.nlwrote in message

news:48 ********************** *@news.tele2.nl ...
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 Db
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" <Sv********@Versatel.nlwrote in message
news:48***********************@news.tele2.nl...

Tom,


我试图完成用户不能用这个

按钮关闭应用程序[x]但是

他们必须通过表格关闭申请。


-Simon

" Tom van Stiphout" < no ************* @ cox.netwrote in message

news:dv ***************** *************** @ 4ax.com ...
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" <no*************@cox.netwrote in message
news:dv********************************@4ax.com...

> 2008年8月26日星期二00:13: 06 +0200,Simon van Beek
< Sv ******** @ Versatel.nlwrote:

这不是不可能,但也不容易。你想要完成什么?用户无法关闭您的应用程序?还有其他方法可以做到这一点(例如,请参阅Form_Unload的取消参数)。记住,如果你这样做,他们会使用任务管理器来核你的应用程序。
你也可以拦截它,但成本更高。

所以你真正想要完成什么?

-Tom。
Microsoft Access MVP

>On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
<Sv********@Versatel.nlwrote:

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


>> >亲爱的读者,

通过打开一个应用程序,我总是得到主要的Access窗口,右上角有
结束交叉[x]。是否有可能使这个关闭的十字架不可见?

工具下的启动表单中的所有设置都被禁用但
关闭十字架在在右上角仍然可见。

感谢您的帮助。

亲切的问候,

Simon
>>>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




这篇关于如何使右角闭合不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆