Paip. c #. net custom image form
Author Attilax, EMAIL: 1466519819@qq.com
Use images as forms to make them more beautiful
Find the BackgroundImage attribute, click to open a new window, select the following import resource file, and select the Png/GIF image. Because the two image formats support transparency, you can also use BMP
If PNG/GIF is used, the backcolor attribute must be set to white. Otherwise, the border will be displayed.
FormBorderStyle, set it to none, that is, do not display the title bar
If BMP is used, the opacity attribute opcity must be set to 100%; otherwise, a border is displayed ..
Set TansparencyKey and set it to the background color (such as yellow) of your bmp image. The yellow area of the BMP image will be displayed as transparent in the future .. You can also set it to BLUE .. But GREEN doesn't work. It's a little strange .... If yes
PNG, GIF image, set to Tansparent
Some say they want to call // SetStyle (ControlStyles. SupportsTransparentBackColor, true) in the constructor. But I can do it without calling it.