如何在VB.NET 2005中添加游标(.cur)文件& 2008年 [英] How to add cursor(.cur) file in VB.NET 2005 & 2008
本文介绍了如何在VB.NET 2005中添加游标(.cur)文件& 2008年的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友,
:)我发现如何在我们的项目中添加.cur文件我尝试了很多但我无法得到它。
如果我们在这条路径中添加.cur文件比发生什么?
==> C:\Program Files \ Microsoft Visual Studio 8 \ Common7 \IDE \ItemTemplatesCache \ VisualVasualBasic \\ \\ _1033 \cursor.zip
解决方案
转到Project =>属性,资源选项卡。单击添加资源按钮上的箭头,添加现有文件并选择.cur文件。
在您的代码中,使用 -
Dim ms 作为 新 System.IO.MemoryStream(My.Resources.Cursor1)
Button1.Cursor = 新光标(ms)
hello friends,
:) i am finding that how to add .cur file in our project i tried a lot but i couldn't get it.
if we add .cur file in this path than what happen??
==>C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplatesCache\VisualBasic\1033\cursor.zip
解决方案
Go to Project => Properties, Resource tab. Click the arrow on the "Add Resource" button, Add Existing File and select your .cur file.
And in your code, use -
Dim ms As New System.IO.MemoryStream(My.Resources.Cursor1) Button1.Cursor = New Cursor(ms)
这篇关于如何在VB.NET 2005中添加游标(.cur)文件& 2008年的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文