### Change Image

To share a snippet which changes the form cursor to an image which is located in the files (dirasset) folder.
' Example: SetFormCursor(MainForm, "arrowup.png")
`Sub SetFormCursor(frm As Form, imagefile As String)
Dim img As Image
img.Initialize(File.DirAssets, imagefile)
Dim joImageCursor As JavaObject
joImageCursor.InitializeNewInstance("javafx.scene.ImageCursor", Array(img))
Dim joCursor As JavaObject = frm.RootPane
joCursor.RunMethod("setCursor", Array(joImageCursor))
End Sub`

Changed: , Category: Cursor, File: T6C178M1295.htm, ID: 1295