形式拒绝最大化 [英] Form Refuses To Maximize

查看:75
本文介绍了形式拒绝最大化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我有一个表单,可以通过命令按钮从另一个表单设置为对话框打开。我已经尝试了所有我能想到的东西,使这个形式在打开时最大化。

我用过了

dcmd.maximize

在打开状态下和在负载上表格的事件程序。还尝试在打开表单的命令按钮的代码中使用它。似乎没有什么能够迫使这个讨厌的事情最大化。

我做错了什么?

这里是调用表单的命令按钮的代码:

Hi Everyone!
I have a form that opens from a another form set as a dialog box via a command button. I have tried about everything I can think of to make this form maximize when it opens.
I''ve used the
dcmd.maximize
in the "on open" and "on load" event procedures of the form. Also tried using it in the code of the command button that opens the form. Nothing seems to force this pesky thing to maximize.
What am I doing wrong?
Here''s the code from the command button that calls the form:

展开 | 选择 | Wrap | 行号

推荐答案

我总是在docmd.maximize命令的形式的OnActivate事件中使用,并且'为我工作。


Nic; o)
I use always in the OnActivate event of the form the docmd.maximize command and that''s working for me.

Nic;o)


除了没有打开最大化之外,表格是否符合预期?
Other than not opening maximized, is the form behaving as intended?



嗨每个人!

我有一个表单,可以通过命令按钮打开另一个表单作为对话框。我已经尝试了所有我能想到的东西,使这个形式在打开时最大化。

我用过了

dcmd.maximize

在打开状态下和在负载上表格的事件程序。还尝试在打开表单的命令按钮的代码中使用它。似乎没有什么能够迫使这个讨厌的事情最大化。

我做错了什么?

这里是调用表单的命令按钮的代码:
Hi Everyone!
I have a form that opens from a another form set as a dialog box via a command button. I have tried about everything I can think of to make this form maximize when it opens.
I''ve used the
dcmd.maximize
in the "on open" and "on load" event procedures of the form. Also tried using it in the code of the command button that opens the form. Nothing seems to force this pesky thing to maximize.
What am I doing wrong?
Here''s the code from the command button that calls the form:
展开 | 选择 | Wrap | 行号


这篇关于形式拒绝最大化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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