I've a simple user control that actually is just a panel, when I click in that panel, there will be a child user control added. that child is just another user control where I set width = 150px
& height = 100px
and the background color to transparent. also it has a textbox in the center that is 100 x 100 px.
this base structure will be a Node Based Interface in the future, where each box will have connection anchors and logic btn's or something like that in it.
my problem is that if i click a few times in the panel and the added box overlapy another, the transparency wont take effect.
here's a screenshot
how can i fix that issue ? is there a allowTransparency
or something like that ?
there is also an issue with the order of the drawing, the new added blocks are always behind the other one's.
if you wish to see the code for this, let me know , but i don't think that there is anything relevant for this.
also, if you know a better way to implement a node graph, please feel free to tell me.
EDIT
following code was the first thing I've tried before I've even thought of posting a question in StackOverFlow.
SetStyle(ControlStyles.SupportsTransparentBackColor, true);
MakeTransparentControls(this);
so please don't take this as a duplicate question or posting that code as answer