Access 2000 - Keep form maximized

T

Tony

Hi All,

I'm trying to find a way to keep a form maximized no matter what users do.
I've tried MS's example of removing the restore button, and I've attempted
to maximize the form on resize, but I just can't get this figured out. Does
anyone have any pointers or sites with examples?

Thanks
 
B

Brendan Reynolds

Tony said:
Hi All,

I'm trying to find a way to keep a form maximized no matter what users do.
I've tried MS's example of removing the restore button, and I've attempted
to maximize the form on resize, but I just can't get this figured out.
Does anyone have any pointers or sites with examples?

Thanks


I haven't extensively tested this, as it's not something I would do or
recommend, but based on a quick limited test this seems to work ...

Option Compare Database
Option Explicit

Private m_Resized As Boolean

Private Sub Form_Open(Cancel As Integer)
Me.TimerInterval = 240
End Sub

Private Sub Form_Resize()
m_Resized = True
End Sub

Private Sub Form_Timer()

If m_Resized Then

'for testing only, to see how frequently form gets resized
Debug.Print Now

DoCmd.Maximize
m_Resized = False
End If


End Sub
 
T

Tony

Brendan,

Thanks for the reply. I'll take a look and post back how things turn out.

Thanks
 
T

Tony

Brendan,

Works well. I'll probably drop the timer interval a bit but it's a nice
approach to something that's bothered me for a while. I've seen lots of
examples that grab the app & form size and resize things but I've never got
them to work quite right. However, this solution is short & sweet.

I really appreciate the help.

Ciao
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top