2011-09-06 84 views

回答

0

如果您可以使用渐变填充创建矩形,并添加该按钮的文本,然后将其另存为.jpg/.gif并使用ImageButton。

0

尝试在System.Windows.Forms.Button上设置BackgroundImage属性。 您可能还想将BackgroundImageLayout设置为Stretch。

Me.button1.BackgroundImage = My.Resources.Gradient 
Me.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch 

希望有所帮助。