borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (EM_SETTEXTMODE not working)Next Topic (PaperWidth and PaperLength) New Topic New Poll Post Reply
AndreaVB Forum : API : CreateEvent?
Poster Message
luckyboy
Level: VB Lord

Registered: 05-05-2005
Posts: 161

icon CreateEvent?

can i used api CreateEvent for create new Event for control in VB ?
For example command button, it don have event MouseOut.
so i used CreateEvent to create event for command button(MouseOut). i want to create event without create new control. can i? anyidea please?

[Edited by luckyboy on 09-12-2005 at 02:49 PM GMT]

____________________________
Please help out.

09-12-2005 at 07:48 AM
View Profile Send Email to User Show All Posts | Quote Reply
steve_w
Level: Moderator


Registered: 18-04-2003
Posts: 1159
icon Re: CreateEvent?

Hi

Never used that api, but if you're looking for when the mouse is off the control then use the mousemove event in the form. This will get fired when you move the mouse off the button control.

Steve  

09-12-2005 at 01:58 PM
View Profile Send Email to User Show All Posts | Quote Reply
luckyboy
Level: VB Lord

Registered: 05-05-2005
Posts: 161
icon Re: CreateEvent?

Thank anyway. but this is a example. i know we can used mousemove instead of.  but my question here can i used CreateEvent to make event in VB. do you have code? anyidea please?

____________________________
Please help out.

10-12-2005 at 01:27 AM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 1052
icon Re: CreateEvent?

Hi,
The issue here is that the MouseOut event was not exposed on the controls. Win2k and XP do have this event, but it's only available through API calls.
See this Code Project Article on MouseLeave and MouseHover it contains complete source for mouseleave and hover code.
However, I am not aware of CreateEvent and it's uses.
Hope this helps,
Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

10-12-2005 at 02:22 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : API : CreateEvent?
Previous Topic (EM_SETTEXTMODE not working)Next Topic (PaperWidth and PaperLength) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder