本文介绍了visual basic c ++如何在表单上添加图片光标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了。但是我标记的部分失败了吗?



位图bmp =新位图(sineklik.png);

ico == Icon.FromHandle( bmp.GetHicon); --->它为什么会出错?

customCursor = new Cursor(ico.Handle);

this.UseWaitCursor = false;

this.Cursor = customCursor;

I've found it. but fails part I marked ?

Bitmap bmp = new Bitmap("sineklik.png");
ico == Icon.FromHandle(bmp.GetHicon); ---> why does it make mistakes?
customCursor = new Cursor(ico.Handle);
this.UseWaitCursor = false;
this.Cursor = customCursor;

推荐答案

ico == Icon.FromHandle(bmp.GetHicon); // error should not be "=="
// should be 
ico = Icon.FromHandle(bmp.GetHicon);



但是,您的标题提到Visual Basic,因此可能存在其他问题。请编辑您的问题并准确说明您看到的错误。


However, your title mentions Visual Basic so there may be other issues. Please edit your question and explain exactly what error you see.


这篇关于visual basic c ++如何在表单上添加图片光标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 06:32