Is there a way to resize the Winform window only in Resize ?
Winform
This means that as long as the mouse is clicked I see the lines, and only when I leave the mouse window (resize) will the screen be resized.
You will need to use DrawReversibleFrame . Resizing by default must be disabled (FormBorderStyle = FixedSingle).
The basic logic is
MouseDown - Start TrackingMouseMove - Draw a reversible frameMouseUp - Stop reverse reverse frame. Resize.
MouseDown
MouseMove
MouseUp
Fortunately, this MSDN post had working code for this. I have a working sample for you. http://www.mediafire.com/download/427g2h2ajm5z62m/ResizeFrame.zip
You will need to configure this to resize the form only when the user “MouseDown” is near the border.
If it is so that only the controls contained in it change size (and the form itself - immediately), use the event
Note : "The ResizeEnd event is also raised after the user moves the form."
Source: https://habr.com/ru/post/1502233/More articles:Add included paths and a shared library for g ++ on an ongoing basis - c ++Get current WebBrowser DOM as HTML - htmlJavascript regex to match repeatable alphabet - javascriptError compiling source file and header file together in C ++ - c ++Javascript: How to dynamically add a number to a variable name? - javascriptFollow javascript link with mechanize and python - javascriptundefined reference to `strnlen_s', strncpy_s', strncat_s' - cpython cannot find redis - pythonHow to bridge the gap that BorderLayout.CENTER occupies? - javaRedirecting to the page on first load and after updating - angularjsAll Articles