Answer the question
In order to leave comments, you need to log in
How to make a thin frame of the form without the top window die?
If you make FormBorderStyle = None, then the plate on top (window name and window control buttons) and the window frame disappear. And it's impossible to resize without a frame.
How to make it so that you leave the frame, but remove the top plate, and change the thickness of the frame to a couple of pixels?
Or maybe there is another simpler solution to resize the window with FormBorderStyle = None in VB .NET ?
update: Regarding the frame, I tried to redraw it in this way, but nothing changes :(
Private Sub Form1_Paint(sender As Object, e As PaintEventArgs) Handles Me.Paint
ControlPaint.DrawBorder(e.Graphics, ClientRectangle, Color.White, 2, ButtonBorderStyle.Solid,
Color.White, 2, ButtonBorderStyle.Solid, Color.White, 2, ButtonBorderStyle.Solid, Color.White, 2, ButtonBorderStyle.Solid)
End Sub
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question