问题描述
你好朋友
我正在尝试更改vb.net中按钮的不透明度.....
但我找不到像不透明度之类的任何属性..如何更改不透明度
程序的任何人都可以告诉我....
Hello friends
i am trying to change opacity of button in vb.net.....
but i couldn''t find any properties like opacity.. how can i change opacity
of program can anyone tell me....
推荐答案
Color col = changeBatchLocationBtn.BackColor;
changeBatchLocationBtn.BackColor = Color.FromArgb(50, col.R, col.G, col.B);
--------------------------------
FromArgb方法的第一个参数决定不透明度.较低的值表示较低的不透明度,较高的值表示较高的不透明度.
--------------------------------
请参考链接以获取参考.
http://stackoverflow.com/questions/1751914/opacity-of-buttons-textboxes- vb-net [ ^ ]
-Bhushan Deshmukh
(注意:如果发现答案有用,请在右上角提供适当的投票.)
--------------------------------
The 1st parameter for the FromArgb method decides the opacity. Lower value gives low opacity and higher value gives high opacity.
--------------------------------
Refer link for reference.
http://stackoverflow.com/questions/1751914/opacity-of-buttons-textboxes-vb-net[^]
-- Bhushan Deshmukh
(Note : if you find the answer helpful plz provide appropriate vote on the top right corner.)
这篇关于如何在按钮中使用不透明度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!