Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Vb's Mouseover


this have been bugging me ever since my Flash days, I havent heed it but now I need to ask, I hope you can help me guyz.

Any mouseover event in VB? how?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
MouseOver
I do have another problem... I have a picture box and I want it to be visible only if the mouse is over it... if not, be invisible.

Something like:

Sub Picture1_MouseOver(...)
picture1.visible=true
end sub

Sub Form1_MouseOver(...)
picture1.visible=false
end sub

Can you help me with a little snippet?

MouseOver
Is it possible to program a mouseover event in vb6.

I am sequentially running through a large database, and have set the MousePointer to vbHourGlass. I am also providing a status form with a Cancel button on it.

What I want to achieve that as the mouse passes over this cancel button, I want to change the pointer back to the normal arrow, and as the mouse moves off of the button change back to the hour glass, whilst the process is running.

I have searched everywhere for this and can find absolutely nothing.

Any pointers appreciated - even if it cant be done

Mouseover
Is it possible to change the image in a picture box when the mouse is positioned over different buttons? Anyone know where I could find info on the topic?

Got Mouseover
I'm writing a usercontrol made up of one listview control and
one combobox control;I want to get the mouseover message of combobox;Can I realize it and How can I realize?

MouseOver In VB?
In Javascript if we onMouseover a picture we can let it play a .wav file.

How about in Visual Basic 6.0? If we mouse over a button, and I want it to play a .wav file, how can this be done?

Mouseover ?
hey everyone. i was just wonderin if someone can help me. i would like to create a control that has an image in it ( that is flat, not a button) and when the user puts the mouse over it changes to a different picture and when they click it changes to yet another picture. can anyone help me ?

Mouseover
I have picures for my buttons. "cmdbutton" property has a picture. So first how do I make it so when i move my mouse over the button i get the little popup that tells you what the button is. Like for a send button, when I move the mouse over it it show a bubble that says "send mail". with like a second delay.

also how do i make is so that when the mouse is over the button, the cursor will change?

Mouseover
whats the best way to do this???

so like if the mouse is over a image it changes to another image

Mouseover
how would i make a command on a mouseover? (when the mouse hovers over an image i want something to happen, and when when the mouse is taken off another thign happens.)

MouseOver
Whats the code for the MouseOver Event??
I want to have a command button and a label, and when the mouse moves over it, a definition appears in the label. Actually I'd need to know Mouse In and MouseOut, Right??

MouseOver
Hello, I wanted to ask you what are the X And Y in the mouse over- I want to use it for when the mouse get to a place on the form ( 1000 Left - 2000 Left, 1000 Top- 2000 Top) somthing will heappen, can anyone help me please?

MouseOver
How do I get that mouse over effect where it displays a little yellow box with black letters? Ex: Hold your mouse over the buttons in IE...I dunno if any other OS has it, but XP does...

MouseOver?
Ok, I think this should be simple. I'm hot on the track...

Environment:
RichTextBox
Label
No Browser


Goal:
Put some text in this RichTextBox, say add a couple of lines of text.
Now - Make the mouse icon change to a hand as it moves over a particular word. Just one word, not the whole sentence and, not the whole line, etc., just one word.

Create a label, which shows the word as the mouse moves over the word.

Do this with the least amount and most efficient code possible!

Thanks,
Sal

Mouseover
how do i make it so when the mouse is over
a command button the mouse pointer changes,
and when its off the button it goes back
to default?
any ideas?

MouseOver
Is it possible to simulate a html-MouseOver-event in VB6?


Thanks

Mouseover??
How do i recreate Javascript's 'mouseover' event, for example, if i move the mouse over a command button, i want the status bar to display a certain text, and when the mouse moves off the button, the staus bar text clears, how do i do that??

No Mouseover
What would be the code for any size of button to keep the cursor off of it?

Mouseover
Is it possible to have a mouseover effect.
ie..if mouse over opt.caption = "This works"
mouse off opt.caption = ""
If so...how?

MouseOver
I use command button with pictures:

In Form_MouseMove

If Cmd1.picture<>img1.picture then Cmd1.picture=img1.picture

In Cmd1_MouseMove

If Cmd1.picture<>img1Over.picture then Cmd1.picture=img1Over.picture

2 picure (img1, img1Over) same size

It's only once draw the picture, but when i move the mouse and the 2
mosuemove events go, the picture flash, spark, gleam, WHY?

Sorry my English is very bad, please help me.



--Boundary_(ID_s85EwbRiej1+MC00Dah78A)
Content-type: text/html; charset=iso-8859-2
Content-transfer-encoding: quoted-printable

<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word"xm lns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-2">



<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid: email@removed ">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:HyphenationZone>21</w:HyphenationZone>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:Brow serLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
span.ElektronikusLevlStlus17
{mso-style-type:personal-compose;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
span.SpellE
{mso-style-name:"";
mso-spl-e:yes;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */


table.MsoNormalTable
{mso-style-name:"Norm=E1l t=E1bl=E1zat";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=HU link=blue vlink=purplestyle='tab-interval:35.4pt'>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><spanstyle='font-size:10.0pt;
font-family:Arial'>I <span class=SpellE>use</span> <spanclass=SpellE>command</span>
<span class=SpellE>button</span> <span class=SpellE>with</span><span
class=SpellE>pictures</span>:<o:p></o:p></span></ font></p>

<p class=MsoNormal><font size=2 face=Arial><spanstyle='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font>< /p>

<p class=MsoNormal><span class=SpellE><font size=2face=Arial><span
style='font-size:10.0pt;font-family:Arial'>In</sp an></font></span><fon size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'> <span
class=SpellE>Form_MouseMove</span><o:p></o:p></sp an></font></p>

<p class=MsoNormal><font size=2 face=Aria

MouseOver?
Is there like a mouseover property?

If not...could someone help get a hover color on a picturebox?
This is what I have so far

Code:Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Picture1.BackColor = &H80C0FF
End Sub

But when I am not hovering over the picturebox it stays the same color...

How do I fix this?

On MouseOver
Hello, could anyone knows how to make the pointer become a hand when the pointer 'onmouseover' a button instead of showing a simple pointer, just like a web-based page. Thanks

On Mouseover In Graphics
Is there any function in VB corresponding to "on mouseover"? For instance if my user's mouse pops over a part of the display, I'd like the status bar to display info about the thing his mouse is currently over.

Mouseover Comment
Is there a way to have a comment popup when you mouseover a command button...I know you can do this in a cell

FlexGrid MouseOver
Hello,
I need help with a MSFlexGrid, I want to change the row color MouseMove over the rows (like phpmyadmin), I'm using FlyGuy's FlexGridRowColor function, it works fine, but I need to know over what row is the mouse over.
Does anyone know how can I get the row number under the mouse cursor?

Thanks,
Ronq.

MouseOver...........but What About MouseOff?
I want to make some custom controls, mainly I want to make some custom buttons. I plan to have the regular button image, a mouse over button image, and a mouse down button image.

The question is, and I've tried searching for a suitable answer, is how to determin when the mouse is no longer over the button so the image goes back to the default image.

Obviously since its going to be encapsulated into its own OCX, I cant just change the image if the mouse hits the form again, which wouldnt be a good way of doing it anyways.

So, in my ActiveX Control project, how can I change the image of the button when the mouse is no longer over the button?

Mouseover Question
is there a way to detect when the mouse moves over a label?
-> I was hoping there was something similar to the mouse click events for labels...

Another unrelated question:
Is there a way to make the labels fill semi transparent?

MouseOver ToolTipText
I have a program where a label reflects a code pulled from the database. I want to have it so that when you mouse over the code you see the description. The problem is that my code/ description can be different for the label depending on the day. Can anyone help me figure out how to code it so tis dynamic?

Mouseover Trouble
I got the original idea for this code to work but when I try to get it to refer to a picture box it gives me a compile error.
Any ideas for this one?

Private Sub Uninstall_MouseMove(Button As Integer, Shift As Integer, X As Single, _
Y As Single)

If (X &lt; 0) Or (Y &lt; 0) Or (X &gt; Uninstall.Width) Or (Y &gt; Uninstall.Height) Then
' the MOUSELEAVE pseudo-event
ReleaseCapture
' in this example revert the caption to normal
Picture2.Appearance = True

ElseIf GetCapture() &lt;&gt; Picture1.hwnd Then
' the MOUSEENTER pseudo-event
SetCapture Picture1.hwnd
' in this example, make the caption bold
Picture1.Appearance = True

End If
End Sub

Mouseover A Listbox
How do i make it, so that when the mouse is over an item in my listbox, it shows that item as the tooltiptext. I need it so that it changes with each item the mouse is over, so that say they put the mouse over the first item, it will say item1, when they put it over the second item, it will say item2

"I may disagree with what you have to say, but I shall defend, to the death, your right to say it."

MouseOver Question
I came across this code..


Code:
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

If intLabel > -1 Then
lbl_InstallCHSI(intLabel).FontItalic = False
intLabel = -1
End If

End Sub

Private Sub lbl_InstallCHSI_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)

lbl_InstallCHSI(Index).FontItalic = True
intLabel = Index

End Sub

Well, I edited it abit.
Anyways, my question is is there a way to make a basic sub mousemove that calls a function and sends the object calling the funtion as a variable. SO that the function can determine whether to do anything or not?

Capture MouseOver
Is there a way to detect when the mouse is over a control and when it is not? I simply want to know if the mouse is over a flexgrid or not. I don't want to know it's every little movement, I just want to know if it's over it or not. Any ideas? Thanks in advance!!

MouseOver Or Balloons
this may be a easy and stupid question but how do you put/make balloons over links or phrase? You know when you put your mouse over the toolbar for a few seconds then a small window pops up with some kind of information.

MouseOver Function
hey everyone. here's what's going on. i'm making a helpful little program for myself that consists of a list that will act as a shortcut to my most commonly used programs. to add a little flare, i want a mouseover fontcolor change effect. i found the code to do it with one label or button:

Code:
Private Sub Label1_MouseMove(Label As Integer, Shift As Integer, X As Single, Y As Single)
With Label1
.ForeColor=vbRed
End With
End Sub

Private Sub Form_MouseMove(Label As Integer, Shift As Integer, X As Single, Y As Single)
With Label1
.ForeColor=vbWhite
End With
End Sub
but i'll have lots and lots labels. i thought about variables and i tried making a fucntion, but i'm no expert at this. any help or ideas would be greatly appreciated.

thanks, jrob

MouseOver Event??
Is there an event for a picture box that is a mouseover event? if you know what I mean. I want crosshairs to follow the mouse if its over a picturebox.

MouseOver Event ?
is there a mouseover event in visual basic ? if so, how do i use it. i am looking to make an image (Image1) not visible and put another image (Image2) in its place. then when the mouse is not over it i wish for it to return to normal (no Image2, only Image1). any help is greatly appreciated !

MouseOver Label
Is there a way to capture a mouseover on a label? I want to change my mouse cursor when I mouse-over a certain label on my form. Thanks in advance!!!

Mimic MouseOver
Hi

i am right in thinking there isn't a mouseover function or a mouseLeave function in vb6?

i want to mimic this for a menu. i.e like in a browser your mouse goes over a clickable link and it changes colour.

i've tried to do this with a timer function, changing the labels colour on MouseMove then setting the timer to 1/2 second which after it should return the label back to it's normal colour. but its not working, the timer function is just executing straight away and not pausing for 1/2 second before executing the code?

Any ideas? what am i doing wrong?


Code:
Private Sub Lbl_Menu_Details_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

Lbl_Menu_Details.ForeColor = RGB(200, 0, 0)

Timer_Menu.Enabled = True
Call Timer_Menu_Timer
Timer_Menu.Enabled = False
End Sub

Private Sub Timer_Menu_Timer()

'This interval is set to 1/2 second

Lbl_Menu_Details.ForeColor = 0

End Sub


Thanks!!

Jon

Web Browser MouseOver
I need an image to mouseover what i mean is when i put my mouse on the back and forward or any picture it should show a little text saying what the image is . Like i put my mouse on the Back button in IE and it will tell me its the back button.

any clue how to do that ?

Thanks.

Mshflexgrid Mouseover
Is there a way to highlight a row when I mouseover it?

Mouseover To Get Info
hello,
Im trying to show info like text when i put the mouse over a specific button at run-time .. shall I use a textbox and make it hidden till i put the mouse over the button or is there an easier way ?.. hope thats clear enough .. thanks in advance

How Can I Make A Mouseover In VB
Is there a command in vb on mouse over. I will use it on command buttons. How i can do it... please help.. thank you

Mouseover Effects
in my project i use some images as buttons..
when the mouse hovers over the buttons, how can i get it to change the image and when the mouse i not hovered over it to go back to the normal image?

ToolBar Mouseover???
Hi Guys,

Is it Possible to Fire a MouseOver Event when the Mouse is over a ToolBar Button?
Does'nt have to be a "MouseOver",just Perform some action eg: Change the Text in a StatusBar,When then Mouse is over a Button.

Thanks

Mouseover Image? How? ---- Still Ned Help!
Ok lets say I wanna use images to open new forms and stuff instead of command buttons.

Ok how do I make it for when Somone moves their mouse over an image it will change to another image of my choice, and when the mouse goes off the image it changes back?

Also How can I make it for when somone click on this image it changes to a third image?

I know it can be done because I saw other programs pplz have made in VB that look really cool and dont have command buttons

This Is How To Do A MouseOver And MouseLeave
Hi

I was browsing around the net the otherday and came across a pdf file about making a label a hyperlink, and it talked about the MouseLeave issue. Well it explained a 'workaround' and i thought it was unbelievably easy so i have just got to share!

The fasinating thing is, you dont actually need any kind of MouseLeave Event to do it, this is what you do.


On your controls MouseMove event, you do your normal stuff when your mouse is over that control, but at the end add a Control.drag


VB Code:
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)    Label1.ForeColor = vbBlue    Label1.FontUnderline = True    Label1.Drag vbBeginDragEnd Sub


and this is where the MouseLeave code is, in the Controls Drag_Over event there is a handy parameter called state, you use this to determine of the mouse has left the control. And if it has you simply code what you need it to do now. but make sure you tell it to end the drag..


VB Code:
Private Sub Label1_DragOver(Source As Control, X As Single, Y As Single, State As Integer)    If State = vbLeave Then        Label1.ForeColor = vbBlack        Label1.FontUnderline = False        Label1.Drag vbEndDrag    End IfEnd Sub


and it turns out that the controls Drag_Drop event is called when you click with the mouse


VB Code:
Private Sub Label1_DragDrop(Source As Control, X As Single, Y As Single)    MsgBox "You Clicked"End Sub



and now all you simply do is set the control Drag Icon to a nice hand cursor and you have a working MouseOver and MouseLeave technique.

Please note I take no credit for this, i just found it off the net somewhere, but i thought it was too good for fellow vb'ers to miss if you didnt already know about it.

Mouseover Display
Does anyone know how to make those little yellowish popup labels that appear when you move the mouse over an object. I am not talking about popup menus, but rather the display that pops up when you move your mouse cursor over say....an item in the system tray, or the time.

Hover Or MouseOver
Does vb have a hover, or onMouseOver function? Something Like it? I just want to change the mouse icon to CrossHair when the mouse is over a graph, and I don't want the user to have to click the graph, just want it to happen when the mouse is over it.

thanks


Paul

MouseOver() Event
Hi,
Does anyone know why MouseOver event isn't included in VB?

Mouseover Flicker
Hi,
when doing a mouseover, and having the icon change, there's occasionally a flicker, how can I stop the flicker.

sample code:

Private Sub image1l_MouseMove(Button As Integer, Shift As Integer, x As Single, Y As Single)
image1.visible=false
image2.visible=true
end sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, x As Single, Y As Single)
image1.visible=true
image2.visible=false
end sub

Copyright 2005-08 www.BigResource.com, All rights reserved