VB School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Mouse Over image. Rate Topic: -----

#1 paritosh_sumrao  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 23-December 07


Dream Kudos: 0

Share |

Mouse Over image.

Post icon  Posted 27 December 2007 - 01:52 AM

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. :)
Was This Post Helpful? 0
  • +
  • -


#2 rabbit_slayer  Icon User is offline

  • D.I.C Head
  • PipPip

Reputation: 1
  • View blog
  • Posts: 71
  • Joined: 30-September 07


Dream Kudos: 0

Re: Mouse Over image.

Posted 27 December 2007 - 11:01 AM

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
cmdspM.Picture = LoadPicture(AppPath() & "\mr\attack n0001.bmp")



now go code it! :P
Was This Post Helpful? 0
  • +
  • -

#3 born2c0de  Icon User is offline

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

Reputation: 137
  • View blog
  • Posts: 4,622
  • Joined: 26-November 04


Dream Kudos: 2825

Expert In: J2ME, 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

Re: Mouse Over image.

Posted 27 December 2007 - 10:35 PM

Use the MouseUp, MouseDown, MouseOver Events to change the image.
Was This Post Helpful? 1

#4 paritosh_sumrao  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 23-December 07


Dream Kudos: 0

Re: Mouse Over image.

Posted 28 December 2007 - 09:15 AM

View Postborn2c0de, on 27 Dec, 2007 - 11:35 PM, said:

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 ?
Was This Post Helpful? 0
  • +
  • -

#5 born2c0de  Icon User is offline

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

Reputation: 137
  • View blog
  • Posts: 4,622
  • Joined: 26-November 04


Dream Kudos: 2825

Expert In: J2ME, 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

Re: Mouse Over image.

Posted 28 December 2007 - 09:55 PM

My bad.
I meant MouseMove.
(Damn you Javascript)
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users