TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Anatole
NA
8
13.4k
change system cursor to default vb.net
Aug 16 2010 7:53 PM
Hello, I have a function to change my system mouse to a different mouse, but how do i change it back to the previous mouse?
Here is the code I have.
'API declarations (form level in test)
Declare Function SetSystemCursor Lib "user32.dll" ( _
ByVal hcur As Int32, _
ByVal id As Int32) As Int32
Declare Function LoadCursorFromFile Lib "user32.dll" Alias "LoadCursorFromFileA" ( _
ByVal lpFileName As String) As Int32
'constant for the "normal" cursor (main arrow graphic)
Private Const OCR_NORMAL As Int32 = 32512
'now in a sub, like button click...
SetSystemCursor((LoadCursorFromFile("C:\WINDOWS\Cursors\3dgarro.cur")), OCR_NORMAL)
Thanks,
Anatole
Reply
Answers (
0
)
how can i combine 2 wav files in vb.net
appointments - calendar