Solved

mouseover

Posted on 2000-04-13
7
154 Views
Last Modified: 2010-05-02
I want to show text in a label.caption whenever the mouse is over a command button on a form.  Is this possible?
0
Comment
Question by:Daron1
  • 4
  • 2
7 Comments
 
LVL 1

Accepted Solution

by:
Gotcha007 earned 40 total points
ID: 2713608
you can use the MouseMove fonction for the command button (Switch to the code windows ,Choose in object listbox your command button and in the function listbox choose mousemove)

when the mouse is on the button this fonction is activated.
and in this fonction you can write a text to your label.
0
 

Author Comment

by:Daron1
ID: 2713653
Private Sub command1_MouseMove()
Label4.Caption = "label text."
End Sub

I tried this but get a compile error:

"Procedure declaration does not match description of event or procedure having the same name."
0
 

Author Comment

by:Daron1
ID: 2713790
Adjusted points from 30 to 40
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 6

Expert Comment

by:Marine
ID: 2713889
The problem is in your event declaration
its like this.

Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label1.Caption = "WHATEVER"
End Sub
0
 

Author Comment

by:Daron1
ID: 2713987
I guess I need to do the same for the mouseout, right?  This enables the label to be reset to "" or whatever default.
0
 
LVL 6

Expert Comment

by:Marine
ID: 2714050
Points are not mine but this is not a website where you can use javascript command mouseout() vb doesn't have that event. What you can do is you can set up a boolean value to see if value has left has changed. Good luck.
0
 

Author Comment

by:Daron1
ID: 2714227
I got a slight JavaScript habit, sorry about that. :)  Thanks.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question