473,549 Members | 2,531 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:=acD ialog
'My PopUp form "F-PAUSE" contains this code
Private Sub Form_Open(Cance l 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 4800

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...@sympa tico.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

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

Similar topics

4
9555
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
11545
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 http://weblogs.asp.net/asmith/archive/2003/09/15/27684.aspx but it was far more complex then I needed. (I got lost trying to figure it all...
6
14681
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 using the Imagebutton.Attributes.Add("onMouseOver","this.src = 'somepicture.jpg') and that works fine. I've tried some java script to change the...
2
8959
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 event, I need to do some processing and, if it succeeds, popup a confirmation dialog and redirect to a different page. How can I do this? Here's...
3
3565
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 and then do a refresh of the calling form. Any ideas on how to get a reference to the calling form? I tried window.parent.location.reload() , but...
3
2232
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 form after the call is made. How can I do this ??? I tried the following code, but I get "Cant Find Field" Error. I also noticed that error...
3
5204
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 works great. However, once the file dialog becomes visible, if the user clicks on my popup form that exists under the file dialog, the file dialog...
1
2934
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 disappears/becomes invisible... in general, any postback fired from within the modal popup makes the modal popup disappear.
11
2938
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? All the settings in the Start-up form under Tools are disabled but the closing cross in the above right corner is still visible.
0
7526
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7457
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7965
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7817
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6051
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5092
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3504
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1063
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.