944,047 Members | Top Members by Rank

Ad:
Mar 29th, 2005
0

Can anybody give answers for these 2 queries ??!!??

Expand Post »
1.Compute CRC32 checksum, write a quick piece of code that accepts the packet of data and returns the CRC.
2.How do you use the Mouse OFF event
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rooparaj is offline Offline
8 posts
since Jan 2005
Mar 29th, 2005
0

Re: Can anybody give answers for these 2 queries ??!!??

I need a little more information than that! Mouse Off? Like, when the mouse leaves the form?
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Mar 29th, 2005
0

Re: Can anybody give answers for these 2 queries ??!!??

Quote originally posted by Comatose ...
I need a little more information than that! Mouse Off? Like, when the mouse leaves the form?
Even i dint get this meaning.I got this question when i was searching for vb interview question.
I got almost all the answers except these 2 . so i thought i may get answers from daniweb and i kept in forum.

Thax for ur reply
regards
Roopa raj
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rooparaj is offline Offline
8 posts
since Jan 2005
Mar 29th, 2005
0

Re: Can anybody give answers for these 2 queries ??!!??

Unless VB.Net has a mouse off event (which it might, I don't know), The answer is "there isn't one". I know VB6 doesn't have one. The only way to find out if the mouse has gone off the form is to use an api call. You need to use the getcursorpos api, and pass it the POINTAPI Type. This will effectively give you the current X Y coordinates of the mouse.
Then, you get the current X, Y coordinates of your form (maybe using getwindowrect, with type RECT), and then compare to see if the mouse falls within those boundaries. If it is within those boundaries, the mouse is on the form. If it's not, then it isn't. So you could use a timer control, and check every millisecond where the mouse is. As long as it's on your form, set a variable to true. When it leaves your form, set it false, and execute some kind of "off form" code. Another option, is to set a global hook on the mouse, and whenever you recieve a WM_MOUSEMOVE, check it's coordinates, compare, and execute.

As for the checksum, I found This neat information:
http://www.vbaccelerator.com/home/VB...32/article.asp
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Data App With Multiple Windows
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Info in Database converted to Chart





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC