i want my program able to change cursor at runtime.
give a hand pleasee....
thanks all...
ITKnight 1 Light Poster
Recommended Answers
Jump to Posttry this followong code :
'This example requires two command buttons Private Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long Private Declare Function CopyIcon Lib "user32" (ByVal hIcon As Long) As Long Private Declare Function LoadCursorFromFile Lib "user32" …
Jump to PostHi,
Write this in FormLoad event:
Me.MousePointer = 99 Me.MouseIcon = LoadPicture("C:\windows\cursors\3dgno.cur")
Change the path accordingly
Regards
Veena
All 6 Replies
Jx_Man 987 Nearly a Senior Poster Featured Poster
Estella commented: thx man +1
ITKnight commented: worked :) +1
Sawamura commented: :P +1
QVeen72 104 Posting Shark
ITKnight commented: great +1
ITKnight 1 Light Poster
Jx_Man 987 Nearly a Senior Poster Featured Poster
Vega_Knight commented: great code man +1
dnk 1 Light Poster
Jx_Man 987 Nearly a Senior Poster Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.