.net - unclipped Winforms user controls? -
Is it possible to create a form with controls that are allowed to exit their (client) area?
In WPF, this is not only possible, but it is also the default: clipbound = false;
.
How do I do this in WinForms?
TIA,
This is not really possible (easily) Windows Forms In. Windows forms a separate window (HWND) per control HWND is limited to a specific area for drawing, and when you nest them, they stick to their parents HWND.
The WPF works on this one by using only one HWND for a window, so when you "control", they are not only rendered by WPF, by the actual OS window handles.
The best thing to do is create a large "parent" window (potentially transparent) and put your control in it so that the clipping does not happen, it is difficult to get the right.
Comments
Post a Comment