A2002: Form_Timer pops up the form

V

Vladimír Cvajniga

I have a main dashboard form. I need to display some information that must
be visible whenever the user opens any form or report. Therefore I have a
floating form (no borders) which pops up when necessary. I need to
reposotion the pop up form whenever user repositions main Access window.
Access doesn't seem that it may handle Reposition event, see my post "Main
Access window: reposition" at
http://groups.google.co.uk/group/mi...dow:+reposition&rnum=1&hl=en#cbe016a7da9751c1.

That's why I tried to add a timer to the dashboard form. In Form_Timer I can
move the floating window according to main form position. The problem is
that dashboard's Form_Timer always pops up dashboard form. Is it a A2002
bug? Is there any known solution either for repositioning or for adding
various types of controls to menubar?

TIA

Vlado

P.S. In A97 there were also some Timer issues that corresponded with
reports. A report which was opened from a form (with Timer) didn't show
correctly. I haven't tested this situation in A2002 yet.
 
D

Dirk Goldgar

In
Vladimír Cvajniga said:
I have a main dashboard form. I need to display some information that
must be visible whenever the user opens any form or report. Therefore
I have a floating form (no borders) which pops up when necessary. I
need to reposotion the pop up form whenever user repositions main
Access window. Access doesn't seem that it may handle Reposition
event, see my post "Main Access window: reposition" at
http://groups.google.co.uk/group/mi...dow:+reposition&rnum=1&hl=en#cbe016a7da9751c1.

That's why I tried to add a timer to the dashboard form. In
Form_Timer I can move the floating window according to main form
position. The problem is that dashboard's Form_Timer always pops up
dashboard form. Is it a A2002 bug? Is there any known solution either
for repositioning or for adding various types of controls to menubar?

I don't see why the firing of the Timer event should pop up the
dashboard form. It doesn't do that for me, with a simple test form.
What's the code you're executing in the Timer event ?
 
V

Vladimír Cvajniga

I have deleted the code and can't remember exactly what it did - I was
trying to pop up (SetFocus) a floating form and move it according to
CommandBar(0).Top. I must have done something wrong.
Now I have added a timer to a floating form and it seems to work OK. I
have to test the project with some reports and see if it's still OK.

TYVM for your respond, Dirk.

Vlado
 
D

Dirk Goldgar

In
Vladimír Cvajniga said:
Now I have added a timer to a floating form and it seems to work
OK. I have to test the project with some reports and see if it's
still OK.
TYVM for your respond, Dirk.

You're welcome. By the way (and you may already know this), beware of
editing code while the form with the Timer event is open. You get weird
behavior in the VB editor if a Timer event fires while you're editing
code.
 
V

Vladimír Cvajniga

Thx for the tip. I know that Access Timer is a "wizard" and that's why I've
put the code to open the floating form only in MDE. I can easily handle this
form when I need it for some tests.

Vlado
 

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