2011-09-06 87 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 

希望有所幫助。