Welcome to Dream.In.Code
Become a VB Expert!

Join 149,936 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,439 people online right now. Registration is fast and FREE... Join Now!




Mouse Over image.

 
Reply to this topicStart new topic

Mouse Over image.

paritosh_sumrao
27 Dec, 2007 - 01:52 AM
Post #1

New D.I.C Head
*

Joined: 23 Dec, 2007
Posts: 5


My Contributions
Can we load a new image for button or picturebox when mouse is moved on and moved out of it ?
Acually I want to make win XP style/cusomised buttons for my VB application to look good.
Also help abt 'skinning an application' is very much needed ( with or without using special software )
Thnx in advance. smile.gif
User is offlineProfile CardPM
+Quote Post

rabbit_slayer
RE: Mouse Over Image.
27 Dec, 2007 - 11:01 AM
Post #2

D.I.C Head
**

Joined: 30 Sep, 2007
Posts: 67


My Contributions
yes you can, but i'm not allowed to sow you haow until you've posted some code to start with.
but i will give you a hint: use loadpicture, as in
CODE

cmdspM.Picture = LoadPicture(AppPath() & "\mr\attack n0001.bmp")


now go code it! tongue.gif
User is offlineProfile CardPM
+Quote Post

born2c0de
RE: Mouse Over Image.
27 Dec, 2007 - 10:35 PM
Post #3

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 4,029



Thanked: 38 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
Use the MouseUp, MouseDown, MouseOver Events to change the image.
User is offlineProfile CardPM
+Quote Post

paritosh_sumrao
RE: Mouse Over Image.
28 Dec, 2007 - 09:15 AM
Post #4

New D.I.C Head
*

Joined: 23 Dec, 2007
Posts: 5


My Contributions
QUOTE(born2c0de @ 27 Dec, 2007 - 11:35 PM) *

Use the MouseUp, MouseDown, MouseOver Events to change the image.


Actually in VB6 only mouseUp, mouseDown and mouseMove events are there related to mouse for command button or picturebox. mouseOver in not there.
Are U talking abt other version of VB ?
User is offlineProfile CardPM
+Quote Post

born2c0de
RE: Mouse Over Image.
28 Dec, 2007 - 09:55 PM
Post #5

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 4,029



Thanked: 38 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
My bad.
I mean't MouseMove.
(Damn you Javascript)
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 04:19PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month