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: screenshot

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 : how should be

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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -