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>

custom non-client area

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

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -