如何从空白的主窗口开始? [英] How to start with a blank main window?

查看:47
本文介绍了如何从空白的主窗口开始?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一些 VBA脚本,以便在启动访问应用程序时主窗口为空白.这是我需要删除或隐藏的东西的列表:

I want to write some VBA script so that when I start my access application the main window is blank. This is the list of things I need to be removed or hidden:

  • 整个功能区
  • 状态栏
  • 导航窗格
  • 窗口标签

此外,我想在右键单击时禁用弹出菜单. 我也想禁用SHIFT旁路键启动.

In addition, I want to disable the popup menu when right clicking. I also want to disable SHIFT bypass key startup.

我基本上希望它看起来像用VB或C#创建的应用程序. 仅当我以管理员身份登录时,才会禁用已禁用的选项.

I basically want it to look like an application created with VB or C#. Only if I login as admin will the disabled options be bypassed.

推荐答案

实际上,如前所述,您可以使用启动选项来删除您在弹出窗口,选项卡等方面遇到的大多数问题.

Actually, as noted, you can use the startup options to remove most all of the questions you have in terms of popups, the tabs etc.

要隐藏色带,请使用:

DoCmd.ShowToolbar"Ribbon",acToolbarNo

DoCmd.ShowToolbar "Ribbon", acToolbarNo

因此,使用正确的选项设置和一行代码,您只会看到表单.

So, with the options setup correct and ONE line of code, you only see your form.

以下是使用上述一行代码和选项关闭选项卡的结果的屏幕截图(您需要使用选项卡式窗口,但选项卡处于关闭状态).请注意您如何看待Windows桌面.都是按照上面的一行代码完成的:

Here is an resulting screen shot of using the above one line of code and options to turn off tabs (you want tabbed windows, but tabs turned off). Note how you see the windows desktop. this was all done with one line of code as per above:

这篇关于如何从空白的主窗口开始?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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