473,397 Members | 2,116 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,397 software developers and data experts.

Form opening/switching bug

Very strange one this.

Application written in Access 2000. Runs in 2003 at client's site, 2000 on
my development system. FE/BE system.

The app's startup form sets a few options, opens the switchboard, then
closes. Each of the buttons on the Switchboard opens a form (or report). The
Switchboard stays open in the background.

One is a 'View Courses' form. This presents a list of educational courses,
the user chooses one, clicks 'go to course' and details of that course,
students on it etc. are displayed (and the View Courses is closed).

The users are reporting this. If they are on the Courses form, with all the
course details for one course, the switchboard suddenly appears, or
occasionally the View Courses form. This happens without user interaction,
sometimes the user is away from the desk.

I've been able to half duplicate this. In the sense that if I have the
application open, do some work in some other programs, then go back to
Access (using Alt+tab) the application has switched to the Switchboard. But
even leaving the app open all night hasn't produced the random switch the
users are reporting.

Remember that the Switchboard is open in the background, but View Courses
isn't. When it happens with my system if I Ctrl+F6 I see that the Courses
Form is still open.

On the Courses form there are two command buttons, one opens the View
Courses form (and makes the Course form invisible), the other makes the
Courses form invisible, thereby revealing the Switchboard.

Interestingly the users called the other day to say this had happened, and
they'd left the machine as it was. However when the went to the machine
(with me on the phone to them) the screensaver had come on, so they moved
the mouse to get rid of it, and the machine was 'back to normal'.

This _appears_ to have have started since the users changed from Windows
2000 to XP pro. I've been on XP pro for some time, but to be honest don't
leave the application static like that for long enough to have the bug
appear.

My guess is that somehow the 2 command buttons are being triggered. I wonder
whether having forms hidden like this is also such a good idea.

Thanks, Emily
Nov 13 '05 #1
8 1749
Emily Jones wrote:
Very strange one this.

Application written in Access 2000. Runs in 2003 at client's site, 2000 on
my development system. FE/BE system.

The app's startup form sets a few options, opens the switchboard, then
closes. Each of the buttons on the Switchboard opens a form (or report). The
Switchboard stays open in the background.

One is a 'View Courses' form. This presents a list of educational courses,
the user chooses one, clicks 'go to course' and details of that course,
students on it etc. are displayed (and the View Courses is closed).

The users are reporting this. If they are on the Courses form, with all the
course details for one course, the switchboard suddenly appears, or
occasionally the View Courses form. This happens without user interaction,
sometimes the user is away from the desk.

I've been able to half duplicate this. In the sense that if I have the
application open, do some work in some other programs, then go back to
Access (using Alt+tab) the application has switched to the Switchboard. But
even leaving the app open all night hasn't produced the random switch the
users are reporting.

Remember that the Switchboard is open in the background, but View Courses
isn't. When it happens with my system if I Ctrl+F6 I see that the Courses
Form is still open.

On the Courses form there are two command buttons, one opens the View
Courses form (and makes the Course form invisible), the other makes the
Courses form invisible, thereby revealing the Switchboard.

Interestingly the users called the other day to say this had happened, and
they'd left the machine as it was. However when the went to the machine
(with me on the phone to them) the screensaver had come on, so they moved
the mouse to get rid of it, and the machine was 'back to normal'.

This _appears_ to have have started since the users changed from Windows
2000 to XP pro. I've been on XP pro for some time, but to be honest don't
leave the application static like that for long enough to have the bug
appear.

My guess is that somehow the 2 command buttons are being triggered. I wonder
whether having forms hidden like this is also such a good idea.

Thanks, Emily


Well, you are at your site and they are at their site. You run some
programs, they run theirs. Who knows what they run. They most likely
run a program that you don't. It would be interesting to hear what
programs they have running when this occurs.

Maybe they have a program that, when running, polls something and if not
true uses something like "SendKeys" and since your app is currently open
the SendKeys call executes in your app, not the calling app.

Nov 13 '05 #2
"Emily Jones" <em********@hotmail.com> wrote
The users are reporting this. If they are on the Courses form, with all
the course details for one course, the switchboard suddenly appears, or
occasionally the View Courses form. This happens without user interaction,
sometimes the user is away from the desk.


I have had a similar thing happen, but it's been a few years, and I don't
recall exactly the cause. My recollection was that it was caused by an
Access event firing every time the main window was redrawn. Redrawing the
window can happen when Maximize is called, or another application steals
focus from Access, and probably some other reasons.

One way you might try in dealing with the problem is to use forms with the
modal and popup properties set to true.
--
Darryl Kerkeslager

Nov 13 '05 #3
Thanks Darryl and Salad

I've been able to semi duplicate this on my system, so the differences
between our systems don't _seem_ to eliminate it.

As far as I can tell at the users only 3 users get this, but they are the 3
most intensive users anyway, so they would be the most likely to get it. All
the machines at the users are new, and came pre-installed with Windows XP
Pro etc. I think their network admins will have set the machines up
identically, though I'll check. Though I see the users have started to
'decorate' their machines with wallpaper and presumably screensavers too.

The modal suggestion seems like a good idea. I'll put it on my list of
things to try.

At the moment I'm doing the thing of hiding forms then making them visible.
In this particular case I may well drop that anyway, as the big form that
I'm hiding has so many data validation things on it that it may be better to
explicitly close/re-open it. And the switchboard will open very quickly.

But I'd rather _attempt_ to get to the bottom of this.

If it is keystrokes being sent to the application then it could be Ctrl+F6,
or Alt+R (command button shortcut), or Alt+F. I'm pretty sure the users
aren't using the command button shortcuts though. I'd like to trap the
keystrokes. I can disable those. They shouldn't be using Ctrl+F6 and they
can live without the others, for now. So I use key preview for the form,
yes? If I set that for the Main form, will it trap keystrokes to the sub
form?

And after I do trap them, is there any way to see where they actually came
from? Presumably some sort of API call.

Yours, Emily Jones
"Emily Jones" <em********@hotmail.com> wrote in message
news:43***********************@news.aaisp.net.uk.. .
Very strange one this.

Application written in Access 2000. Runs in 2003 at client's site, 2000 on
my development system. FE/BE system.

The app's startup form sets a few options, opens the switchboard, then
closes. Each of the buttons on the Switchboard opens a form (or report).
The Switchboard stays open in the background.

One is a 'View Courses' form. This presents a list of educational courses,
the user chooses one, clicks 'go to course' and details of that course,
students on it etc. are displayed (and the View Courses is closed).

The users are reporting this. If they are on the Courses form, with all
the course details for one course, the switchboard suddenly appears, or
occasionally the View Courses form. This happens without user interaction,
sometimes the user is away from the desk.

I've been able to half duplicate this. In the sense that if I have the
application open, do some work in some other programs, then go back to
Access (using Alt+tab) the application has switched to the Switchboard.
But even leaving the app open all night hasn't produced the random switch
the users are reporting.

Remember that the Switchboard is open in the background, but View Courses
isn't. When it happens with my system if I Ctrl+F6 I see that the Courses
Form is still open.

On the Courses form there are two command buttons, one opens the View
Courses form (and makes the Course form invisible), the other makes the
Courses form invisible, thereby revealing the Switchboard.

Interestingly the users called the other day to say this had happened, and
they'd left the machine as it was. However when the went to the machine
(with me on the phone to them) the screensaver had come on, so they moved
the mouse to get rid of it, and the machine was 'back to normal'.

This _appears_ to have have started since the users changed from Windows
2000 to XP pro. I've been on XP pro for some time, but to be honest don't
leave the application static like that for long enough to have the bug
appear.

My guess is that somehow the 2 command buttons are being triggered. I
wonder whether having forms hidden like this is also such a good idea.

Thanks, Emily

Nov 13 '05 #4
Do you use any OnResize or OnTimer events?

--
Darryl Kerkeslager
Nov 13 '05 #5
"Darryl Kerkeslager" <ke*********@comcast.net> wrote in message
news:K7********************@comcast.com...
Do you use any OnResize or OnTimer events?


Don't think so. But I'll have a look, thanks.

What I've done for now is I've written a keylogging routine, which I'm
calling from the suspect forms. It logs users, form, active control and
state of shift/ctrl/alt keys too. And logs everything to a seperate mdb on
the server. I've tested it manually and also by writing a little VB app that
did a SendKeys.

I'll ask the users to note the exact time that this occurs again. So that at
least I can see which, if any, keystrokes are making this happen.

But I may be none the wiser. Is there any way of finding out where
keystrokes have come from, if they've been sent by an app? Or do they always
_appear_ to come from the keyboard.

Yours, Emily
Nov 13 '05 #6
> But I may be none the wiser. Is there any way of finding out where
keystrokes have come from, if they've been sent by an app? Or do they
always _appear_ to come from the keyboard.


Don't know, sorry.

My thinking is that you won't detect anything unusual - that it is Access
events causing the problem, not keys.
--
Darryl Kerkeslager
Nov 13 '05 #7
Just noticed that the Options/Advanced/Refresh option is set to 5 seconds.
Seems a bit short to me. Isn't it usually 60 seconds? Could this cause
unusual behaviour?

Emily

"Darryl Kerkeslager" <ke*********@comcast.net> wrote in message
news:2J******************************@comcast.com. ..
But I may be none the wiser. Is there any way of finding out where
keystrokes have come from, if they've been sent by an app? Or do they
always _appear_ to come from the keyboard.


Don't know, sorry.

My thinking is that you won't detect anything unusual - that it is Access
events causing the problem, not keys.
--
Darryl Kerkeslager

Nov 13 '05 #8
"Emily Jones" <em********@hotmail.com> wrote
Just noticed that the Options/Advanced/Refresh option is set to 5 seconds.
Seems a bit short to me. Isn't it usually 60 seconds? Could this cause
unusual behaviour?


It is usually 60 seconds. However, unless you have forms that are bound to
data over a particularly slow LAN, I don't see how you would even notice
anything, and IMHO, would not cause any problems anyway. No harm in setting
it to 60 seconds just to eliminate any concern, though.
--
Darryl Kerkeslager
Nov 13 '05 #9

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

Similar topics

4
by: Sean Connery | last post by:
I have a Microsoft UI Process Application Block that is controlling child forms in an MDI parent container. The views node in the app.config file has been set to stayOpen=false. Because there...
6
by: Lasse Eskildsen | last post by:
Hi, How can I make sure I don't show the same form twice? If the form is already shown, just focus. I tried using ownedforms, but can't quite make it work... Thanks in advance! -- Lasse
0
by: abdulics | last post by:
Hi, We have immediate openings with one of our Top Notch Telecom clients for their Research and Development Center in Bangalore. Please send me your detailed/brief profile to...
0
by: abdulics | last post by:
Hi, We have immediate openings with one of our Top Notch Telecom clients for their Research and Development Center in Bangalore. Our top notch and reputed client deliver complex IT solutions on...
6
by: Arkadiusz Smolak | last post by:
Hi, I need a help. I have form inherited from other form. The base form implementation is placed in other assembly. I try to open my inherited form in designer but visual studio throws an...
13
by: MLH | last post by:
I have a form, frmVehicleEntryForm. On it is a subform control named frmAddnlOwnrListSubForm. The subform control's source object is frmAddnlOwnrListSubForm. When I click on the subform control,...
5
by: Neil | last post by:
"lyle" <lyle.fairfield@gmail.comwrote in message news:48c3dde7-07bd-48b8-91c3-e157b703f92b@f3g2000hsg.googlegroups.com... Question for you. I'm doing something similar, only, instead of opening...
12
by: John | last post by:
Hi I have searched for answer to this question on the net but surprisingly no clear answer has come up. How can I open a form hidden in vb.net? Thanks Regards
0
by: studentofknowledge | last post by:
hi my knowledgeable comrads I have created a web form using html, css with the addition of some basic javascript validation. Although now im having trouble to insert this information to my local...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...

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.