Entire Screen flickers when MouseMove event is triggered in Access 2003

  • Thread starter Thread starter Paul Ponzelli
  • Start date Start date
P

Paul Ponzelli

We're using the MouseMove event (below) to highlight command labels in a
form when the user moves the mouse over them. It works fine in Access 2002,
but in Access 2003 the entire screen flickers dramatically when the event is
triggered. Can anyone tell me if there is a way to solve this problem?

Thanks in advance,

Paul


Private Sub Scheduling1_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
On Error Resume Next
Set_Casemgr_menu
Me!Scheduling1.ForeColor = 16711680
Me!Scheduling1.SpecialEffect = 1
Me!Scheduling1.BackStyle = 1
End Sub
 
The important aspect will be to change the properties only if they need
changing. Example below.

If that does not solve the problem, is this an unattached label that is not
sitting directly on the form (e.g. on the page of a tab control)? If so,
this is a bug with A2003. Details in:
Flicker with tab controls
at:
http://allenbrowne.com/ser-46.html

Private Sub Scheduling1_MouseMove(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
On Error Resume Next
With Me.Scheduling1
If .ForeColor <> 16711680 Then
Set_Casemgr_menu
.ForeColor = 16711680
.SpecialEffect = 1
.BackStyle = 1
End If
End With
End Sub
 
rytry
-----Original Message-----
From: Leon
Posted At: Friday, May 20, 2005 4:41 AM
Posted To: microsoft.public.access
Conversation: Entire Screen flickers when MouseMove event is triggered in Ac
Subject: Re: Entire Screen flickers when MouseMove event is triggered in Ac

Hi. Could I butt in here? Im currently using Access 2002 on Xp. I have a Tab
Control as my main switchboard. All of my fields, some of which are
unconnected labels, are on forms and the forms sit on the various Tab pages.
Am I likely to have this problem if our systems get upgraded to 2003 in the
future?

Thanks, Leon
 
Hi. Could I butt in here? Im currently using Access 2002 on Xp. I have a Tab
Control as my main switchboard. All of my fields, some of which are
unconnected labels, are on forms and the forms sit on the various Tab pages.
Am I likely to have this problem if our systems get upgraded to 2003 in the
future?

Thanks, Leon
 
Yes. Where you have unattached labels on the page of a tab control, you will
experience that problem under Access 2003 running on Windows XP.

Turning off the themes under Windows XP is the other workaround.
 
Thanks, Allen.

Our labels are directly attached to the form, and there are no tabs in the
form, so I'll add the If statement to test the property value.
 

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

Back
Top