Hi,
On start up I disable all toolbars and command bars.
Thus my "base forms" open (Maximised) with a simple border and nothing else (other than the minimise, restore and
close buttons in the top right corner). (everything else is disabled)
I have a "new form" which opens on top of these "base forms". This form is a POP UP and I do NOT want it to have borders.
I would like this "new form" to open up to exactly the same size as the "base form". Meaning that the users sees the "new form" except that the border is from the form underneath.
I can force this to happen by setting/dragging the new form (in design view) to a certain size which is perfect for my screen resolution. But if the screen resoltuion changes then my "base form" maximises to the full screen, but my new form does not change size.
So my question is how can I dynamically resize this pop up.
I realise that I am probably going to have to use API calls and get the "base form" size but can someone point me at least in the right direction.
Hi,
To create a command button that, when clicked, will pop open the necessary form, follow these steps:
1. Open the Order Entry form in design mode.
2. Click the Command Button tool on the toolbox and click and drag it to insert the command button control on the Order Entry form.
3. Right-click the command button and select Properties.
4. Under the Format tab, change the caption to E-mail Address.
5. Select the Event tab, click the On-Click Property's drop-down menu, and then select Event Procedure.
6. Click the On-Click Property's Build button.
7. Enter the following command at the prompt:
DoCmd.OpenForm "Customer E-mail Addresses"
8. Press [Alt][Q].
Try this:
Code:Dim intwindowheight As Integer Dim intwindowwidth As Integer intwindowheight = Forms(Me.OpenArgs).WindowHeight intwindowwidth = Forms(Me.OpenArgs).WindowWidth intwindowheight = intwindowheight + 50 intwindowwidth = intwindowwidth + 50 Me.Move Left:=Forms(Me.OpenArgs).WindowLeft, Top:=Forms(Me.OpenArgs).WindowTop, Width:=intwindowwidth, Height:=intwindowheight
ExlGuru
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks