
Disable close button on maximized forms
Hi,
I have a mainform which contains another form.
When the mainform is loaded I want it to be maximized.
This can be done by Docmd.Maximize. I have set the properties of the form so
that no max or min buttons or systemmenu buttons are available.
But ... when the form is maximized, those controls (minimize, maximize) ar
still visible.
So I visited The Access Web and read this article :
http://www.*-*-*.com/
Does anyone knows how to call the sub: MaximizeRestoredForm(form)
I have tried several things but get errors:
frmHoofdscherm is the name of the mainform.
MaximizeRestoredForm (frmHoofdscherm) --> error!
or
dim frm as form
frm = screen.activeform
MaximizeRestoredForm (frm)
But here it says that the active form doesn't have the focus.
So I tried to Me.form.setfocus, but that wont help.
DOES ANYONE KNOW HOW TO CALL THE SUB MaximizeRestoredForm CORRECTLY ???
Patrick