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

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -