1
我知道vb.net中的按钮的图像属性读取.GIF格式并因此在运行时进行动画处理。我有一个定制的按钮,还有一个定制的图像属性,但不幸的是,它不会读取.GIF格式。我有这段代码片段:vb.net中按钮的图像属性
Private _Image As Image
<Category("Appearance CButton"), _
Description("Get or Set the small Image next to text")> _
<DefaultValue(GetType(Image), "none")> _
Public Property Image() As Image
Get
Return _Image
End Get
Set(ByVal Value As Image)
_Image = Value
Invalidate()
End Set
End Property
此代码只读取gif文件而不是gif。现在有没有人知道代码有什么问题?还是有可能只是继承窗体按钮的图像属性,以便它可以读取gif格式?非常需要..谢谢!
Web?的WinForms?狡猾不是WPF ... –