How to view through C# WinForm from another WinFrom -
i made capture app in c# winforms. i'm trying see through winform winform.
what have this:
the black background opacity winform number 1
and blue rectangle transparent fill in winform number 2
i need way see content of website page through winform 1.
this i'm trying accomplish :
i tried set fill color transparent key color this:
this transparencykey code winform number 1:
this.transparencykey = system.drawing.color.pink;
this code draw rectangle on winform number 2:
solidbrush transparentbrush = new solidbrush(color.transparent); pen mypen = new pen(color.blue, 2); private void thepaint(object sender, system.windows.forms.painteventargs e) { g.fillrectangle(transparentbrush, currenttopleft.x, currenttopleft.y, rectanglewidth, rectangleheight); g.drawrectangle(mypen, currenttopleft.x, currenttopleft.y, rectanglewidth, rectangleheight); rectangledrawn = true; }
you try putting panel on form 2 , setting it's colour "pink" - way, transparent through form 2 web page behind. downside odd if have controls on it. achievable through winform designer.
Comments
Post a Comment