Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Join Date
    Jul 2007
    Posts
    27

    Unanswered: Flashing and flerking buttons

    Hello everybody,
    I used some buttons on main form, and also hide the Access Window, when the main form loads, but when I move the mouse any where of the form, all the buttons are flashing, How can I solve that problem? Also hope this time my problem be solved here...

    NOTE: If I dont hide the Access Window, then it is ok, mean the buttons are not flashing...
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    It's because you're using a hefty mouse move event!
    No - no - no - no - no!

    What are you trying to achieve with this event - I can guarantee there is a far better way of doing this.

    P.S - it flashes regardless of whether the access window is visible or not!
    George
    Home | Blog

  3. #3
    Join Date
    Jul 2007
    Posts
    27
    Firstly thanks for replying,
    if there is a better way doing that, so plz attach a sample of that here for me, that would be very kind of you.

    P.S - I am sure, if I dont hide the Access window, then it is ok, not flashing...

  4. #4
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Tanha,
    Quote Originally Posted by tanha
    if there is a better way doing that
    Doing what? What are you trying to achieve with this mouse over event?
    Quote Originally Posted by tanha
    plz attach a sample of that here for me, that would be very kind of you.
    I am not doing this for you.

    George
    George
    Home | Blog

  5. #5
    Join Date
    Jul 2007
    Posts
    27

    Hi

    I did not used mouse move event on form, just I used on buttons...

    any way, How can I stop flashing...???????????????

  6. #6
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    No mouse move event? I beg to differ.
    See attachment
    Quote Originally Posted by tanha
    any way, How can I stop flashing...???????????????
    Being rude won't get you any help.
    Attached Thumbnails Attached Thumbnails mouemove.JPG  
    George
    Home | Blog

  7. #7
    Join Date
    Jul 2007
    Posts
    27
    thanks for the replying again,
    yeah it stops the flashing, but when I move the mouse over the buttons, there is no movement of the buttons...
    How can I make the buttons flash (move) when mouse move over them, like flash buttons?

  8. #8
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    I think what you actually want is to change the button image on mouse over.
    You currently have the event running on the details section of the form (so the whole darn thing!) - you need to move the event to each button independantly.
    George
    Home | Blog

  9. #9
    Join Date
    Jun 2005
    Location
    Richmond, Virginia USA
    Posts
    2,763
    Provided Answers: 19
    Anytime you use the MouseMove event to do something, you have to use the Detail MouseMove event to "undo" it! If you use the MouseMove event to change colors on a label, for example, you have to use the Detail MouseMove event to change them back! The problem here is, indeed, caused by the code to "hide" the Access window. It causes problems, as I found when I attempted to use it, a while ago, such as the flashing noted here, and problems with the .ldb file being released; I had to reboot twice to get to the guts of this db!

    What I would suggest is that you delete the

    Private Sub Form_Load()
    Call Module2.fSetAccessWindow(0)
    End Sub

    and instead, have a blank, color appropriate, maximized "backdrop" form that opens with the opening of the database. In Tools - Startup uncheck all the boxes, then in the Form_Open event of this form, call your menu form, with the MouseMove activated buttons.

    If the "backdrop" form is sized appropriately, it will look similar to a straight VB program. I realize that there are people out there who think that all this song and dance is silly, but the fact is that there are end users who are much more comfortable using a program with this type of appearance than with the more utilitarian Access interface!

    Good Luck!
    Hope this helps!

    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  10. #10
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926
    The Flashing database in this attachment has some code I've been searching for quite a while. It removes the MSAccess screen and only shows the popup form. Thank you tanha for sending this. Has anyone every used this code to not show the MSAccess components but show only the form? It seems to work quite well.
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

  11. #11
    Join Date
    Jun 2005
    Location
    Richmond, Virginia USA
    Posts
    2,763
    Provided Answers: 19
    I tried using it a while back and finally gave up on it because it all too frequently left the .ldb file hanging, requiring rebooting before deleting the file.
    Hope this helps!

    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  12. #12
    Join Date
    Jul 2007
    Posts
    27

    Hi all

    1. I tested the attachment on many computers, and it is working not rebooting the system...

    2. Still I dont know how make the buttons flash when mouse move over them, not flash the form and the butons when mouse move over the form...

    If any did it, plz attach here too.............Thanks

  13. #13
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Quote Originally Posted by georgev
    ... what you actually want is to change the button image on mouse over.
    So on the MouseOver event of each button - change the image.
    On MouseOut of each button you want to change the image back to the original!
    George
    Home | Blog

  14. #14
    Join Date
    Jul 2007
    Posts
    27
    I think it is really complicated to do for each button separately, Is there away to have a global function, and then send the button as parameter and do the action?

  15. #15
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Yes there is
    Code:
    Function MyFunction(PictureName As String
     Me(PictureName).Picture = ....
    End Function
    
    'Call the function like this
    MyFunction("Picture1")
    George
    Home | Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •