本文介绍了VB.NET更改鼠标指针图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好。
有人可以告诉我如何更改鼠标图标。我有2个PNG文件1用于拖动(OnMouseDown Handler),另一个是默认指针。
发现这个并且它有错误,不知道如何解决这个问题
Hello everyone
Can someone please show me how to change the mouse icon. I have 2 PNG files 1 is for dragging (OnMouseDown Handler) and the other is the default pointer.
Found this and it has an error, don't know how to fix this
Dim memory_stream As New System.IO.MemoryStream(My.Resources.open)
Me.Cursor = New Cursor(memory_stream)
错误:
ERROR:
Error 1 Overload resolution failed because no accessible New can be called with these arguments:
Public Sub New(buffer() As Byte): 'Value of type System.Drawing.Bitmap cannot be converted to '1-dimensional array of Byte'.
Public Sub New(capacity As Integer)': Value of type 'System.Drawing.Bitmap' cannot be converted to 'Integer'.
谢谢
Thanks
推荐答案
这篇关于VB.NET更改鼠标指针图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!