labels disappearing after the form loses focus

edeng

New member
Local time
Today, 08:50
Joined
Jun 23, 2009
Messages
9
I'm having a very interesting problem. I am using the switchboard manager and have created a switchboard. there's a graphic as the background, which is the most back layer (I sent it to the back). in addition to that I have a label.

The problem:
A new form pops up from clicking a button on the switchboard (automatically generated by access) and covers the label. after I close the form, the part of the label that has been covered by the other form is gone, just the background is there.

Some observations I've made:
-only the part that is covered disappears. So let's that that it's a "A" and when the new form opens I cover the top half of the "A". Then, after closing it, i would still see the bottom half of the "A."
-this only happens when the form or whatever is opened is opened by clicking a button on the switchboard. So, if I were on the switchboard and moved focus to another form that was already open and covered it, the label would still be visible after I go back to the switchboard
-I experimented a bit and found out that it only happens when it is on top on the graphic. So, if the label were only partially on top of the graphic (half on, half off) and it were to be covered, only the portion that was on top of the graphic would disappear. the part of the label that isn't on top of the graphic is still visible.

I suspect that it's just a bug, but I'm hoping there's some way to get around it. It's not really a big deal, but as you can imagine, it's pretty annoying.

Also, I am using Access 2003.
 
Not really a bug but I think you are taxing the limits of your graphics card. You can add

Me.Repaint

to the On Activate of the form that you come back to and that should help.
 
I tried it but don't see any difference
 
Put a message box in the Activate event of the form too just to find out if it is firing. If not, we have to figure something else out. :) If it is, we also have to figure something else out.
 
I put in a dialog bog and it does pop up each time, but the label still disappears
 
What service pack level are you at?
 
For Access (Office) that is...
 
See if it does it right after rebooting your computer.
 
Well, darn - I'm at a loss to explain it. I've had that happen before but a repaint usually fixed it.
 
oh well, it's ok, not a big deal. I was just hoping that there was something I was missing.

thanks for your help!
 
have you changed the switchboard code or form at all?

or modified the button click events
 
no, the only thing that I added was the OnActivate, as suggested by SOS. I can't be 100% sure, though, since I wasn't the one who first created it.
 

Users who are viewing this thread

Back
Top Bottom