473,322 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Make a PopUp Dialog Form Invisible

I can't seem to make a PopUp Dialog form Invisible!

'My main form calls the PopUp
DoCmd.OpenForm "F-PAUSE", WindowMode:=acDialog
'My PopUp form "F-PAUSE" contains this code
Private Sub Form_Open(Cancel As Integer)
Forms![F-PAUSE].Visible = False
' Me.Visible = False 'this did not work either
End Sub

The form is visible when in Pops Up???
I ran F-Pause directly, and still the same problem
Also, I do not see a visible property in the properties list for a
form, and I guess this is normal. I am using the Timer in the form to
pause for 3 seconds, but changing this had no affect.

Any ideas???

Thanks
Greg

Mar 16 '07 #1
10 4774

The form's Open event occurs before the form is even made visible. Why
would you try to do it there?
What is it you are trying to do? There may be a better way.

Mar 16 '07 #2
Hello Mike

I tried the statement in the Load and Current events as well, without
success.

Purpose:
The Initial stage of my main form calls the PopUp form. The Popup has
a 3-second timer delay that I use to check for a KeyPress sequence.
If the KeyPress sequence is pressed, the mainform will make available
another form to modify the FE data, if not then the mainform executes
normally. This is working, but I just can't seem to make the PopUp
form invisible. I do not want the popup visible.

Thanks
Greg

Mar 16 '07 #3
Hey Greg,

An invisible form cannot have focus, and as such cannot receive user
input.
Have you considered making this feature a menu item, or an AutoKeys
macro?

Mar 16 '07 #4
>An invisible form cannot have focus, and as such cannot receive user
>input.
Damn! This is making me crazy. All I want to do is pause the code in
the initial stage of my main form, so that I can interpret any
keypressed in the first 3-seconds in the life of the form. I tried a
PauseLoop at the start of the main form hoping to capture the
keypressed before the remaining code checks for the result, but the
code does not pause. So, now I pause the code sucessfully and read
the key sequence no problem, but I can't hide the popup form "F-Pause"
because I will lose the forms focus and fail to have the background
code execute (FormsTimer and KeyDown stuff). Catch22&1/2.
>Have you considered making this feature a menu item, or an AutoKeys
macro?
I want to capture a key before the user sees a Menu. I do not think
that AutoKeys will accomodate the key sequence I had in mind, and I
remember some limitations that may cause me problems.

Seems crazy. Can't simply capture a key pressed before the mainform
displays the menu!

Any other thoughts appreciated. Also, Any idea why I cannot make the
form invisible?

Thanks as Always
Greg



Have you considered making this feature a menu item, or an AutoKeys
macro

Mar 16 '07 #5
Ap******@gmail.com wrote:
>An invisible form cannot have focus, and as such cannot receive user
input.

Damn! This is making me crazy. All I want to do is pause the code in
the initial stage of my main form, so that I can interpret any
keypressed in the first 3-seconds in the life of the form. I tried a
PauseLoop at the start of the main form hoping to capture the
keypressed before the remaining code checks for the result, but the
code does not pause. So, now I pause the code sucessfully and read
the key sequence no problem, but I can't hide the popup form "F-Pause"
because I will lose the forms focus and fail to have the background
code execute (FormsTimer and KeyDown stuff). Catch22&1/2.
Open your form with the acDialog option. That will pause your calling code
until the user hides or closes the popup form. If you hide the form your
calling code can continue, pull values from the hidden popup, and then close
it.
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Mar 16 '07 #6
Use a splash screen. Something that is visible, makes the app look
professional and provides the visible form time to capture the key-
press.

Mar 16 '07 #7
I had to rethink my approach, and will have my key sequence captured
from the menu.
And will do a dance around a Visible PopupForm that will occur before
the menu on an error condition. Convoluted, but can do.

You had to be there!

Thanks guys
Greg

Mar 16 '07 #8

Hey Greg,

I'm not sure what changes to the 'system' you're making at start-up,
and I only mean to help out, but but are you maybe over-designing
something without realizing it? When I need to make changes to a DB,
say a startup setting, table links or something - I would just provide
a utility that can be accessed at anytime from a menu, or 'System
Options' form. If the changes require the app to be restarted, that
can be either forced or other features blocked until restarted.
I hope you don't get into the situation where you keep missing the 3
second interval, and have to frustratingly try several times, finally
mashing the keyboard until you get the timing right.

Ever see that security cam video clip where the guy trashes his office
computer?

Mar 17 '07 #9
On Mar 16, 11:32 pm, "storrboy" <storr...@sympatico.cawrote:
Hey Greg,

I'm not sure what changes to the 'system' you're making at start-up,
and I only mean to help out, but but are you maybe over-designing
something without realizing it? When I need to make changes to a DB,
say a startup setting, table links or something - I would just provide
a utility that can be accessed at anytime from a menu, or 'System
Options' form. If the changes require the app to be restarted, that
can be either forced or other features blocked until restarted.
I hope you don't get into the situation where you keep missing the 3
second interval, and have to frustratingly try several times, finally
mashing the keyboard until you get the timing right.

Ever see that security cam video clip where the guy trashes his office
computer?

Mar 17 '07 #10
Mike
When I need to make changes to a DB,
say a startup setting, table links or something - I would just provide
a utility that can be accessed at anytime from a menu, or 'System
Options' form.
Agreed! This is part of the system already.
>If the changes require the app to be restarted, that
can be either forced or other features blocked until restarted.
This has become part of my new plan. I would not have persued my
orginal thought had I known the outcome in advance. By the way, the
KeyPressed API you discussed in a previous post would have worked, but
I ran scared.
>Ever see that security cam video clip where the guy trashes his office
computer?
Ah! The truly permanent substitute to the Recycle Bin.
I came close this time around :)

Thanks
Greg

Mar 17 '07 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Steve | last post by:
Does anyone know of a way to open a messagebox over a popup form opened in acDialog mode? Thanks for any ideas! Steve
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
6
by: Selden McCabe | last post by:
I have a form with a bunch of image buttons. When the user moves the mouse over a button, I want to do two things: 1. change the Imagebutton's picture, and 2. make another control visible. I'm...
2
by: steggun | last post by:
How To: Popup Confirmation Dialog & Redirect in LinkButton_OnClick Hello All, I have a ASP.NET 2.0 (C#) web form with a LinkButton control. In the server-side code for the LinkButton_OnClick...
3
by: Opa | last post by:
Hi , I have a form with javasript which launches a popup via the showModalDialog() method. I get the dialog to open, now I am trying to first get a reference to the calling form from the popup...
3
by: ApexData | last post by:
I have a Dialog PopUp Form that is called by the following code: DoCmd.OpenForm stDocName, , , stLinkCriteria, cFormReadOnly, acDialog I would like to set the Visible propery of a Label in this...
3
by: ApexData | last post by:
I am using code from the following links to establish a Browse File and Browse Folder dialog. http://www.mvps.org/access/api/api0001.htm http://www.mvps.org/access/api/api0002.htm This code...
1
by: Samuel Rhodes | last post by:
hi i am using a ajax modal popup to allow the user to search an item and select the required item from the list. whenever i try to search the item, which causes a post back....the modal popup...
11
by: Simon van Beek | last post by:
Dear reader, By opening an application I get always the main Access window with the closing cross in the above right corner. Is there a possibility to make this closing cross invisible? ...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.