winforms - VB.NET Fading out button properly -
how fade out/in button in vb.net properly? can fadeout/in labels using: controls(i).forecolor = color.fromargb(255, alpha, alpha, alpha) (where controls(i) label for next loop through controls in me.controls ; alpha value of rgb, for next loop). this did not work me buttons because changing forecolor leaves rest of buttons' uis visible! so, way i'm trying uses saved resource image of button (from screenshot) , creates faded in/out version displayed image in picturebox : public function setimageopacity(byval imgpic image, byval imgopac double) image dim bmppic new bitmap(imgpic.width, imgpic.height) dim grpic graphics = graphics.fromimage(bmppic) dim imgatt new imageattributes() dim cmxpic new colormatrix() cmxpic.matrix33 = imgopac imgatt.setcolormatrix(cmxpic, colormatrixflag.[default], coloradjusttype.bitmap) grpic.drawimage(imgpic, new rectangle(178, 144, bmppic.width, bmppic.height), imgpic.width, imgpic.height, imgpic.widt...