vb.net - Extend non-client area on form with custom drawn titlebar -
I used a great tutorial to create custom non-client area controls in my form, it looks like this now: < / P>
I would like to do this so that non Client area can start the tab control page all the way, so the logo is completely in the non-client area and the window is not gray at the top.
Search this line in the code of the form:
dwmMargins CytopHeight = nccsp Rect2.Top - nccsp.rect1.Top
Now you should add several pixels that you want:
dwmMargins.cyTopHeight = nccsp. Rect2.Top - nccsp .ct 1.top + x
Comments
Post a Comment