Page Rank

Subscribe

Categories

Recent posts

Alexa Rank

Resize form when form has no border in VB


  • This topic explains about, how to resize form when form has no borders to drag in VB programming.

Resize form when form has no border in VBWorking

  • When you press the left mouse button down on the form, the MouseDown event handler executes.
  • It sets the control’s Capture property to False to release the mouse capture that was started by pressing the mouse button down.

Control.MouseDown EventResize form when form has no border in VB

  • Control.MouseDown Event occurs when the mouse pointer is over the control and a mouse button is pressed.

Namespace:  System.Windows.Forms

Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

WM_NCLBUTTONDOWN message (Windows)Resize form when form has no border in VB

  • Message posted when the user presses the left mouse button while the cursor is within the non client area of a window.
  • This message is posted to the window that contains the cursor.
  • If a window has captured the mouse, this message is not posted.
  • If an application processes this message, it will return zero.

Parameters

  • wParam

  • The hit-test value returned by the DefWindowProc function as a result of processing the WM_NCHITTEST message. For a list of hit-test values, see WM_NCHITTEST.
  • lParam
  • A POINTS structure that contains the x- and y-coordinates of the cursor. The coordinates are relative to the upper-left corner of the screen.
  • More refer: Microsoft

Resize form when form has no border in VBComplete Code

  • Write below code inside Mouse Down event of a form.

Resize form when form has no border in VB

If you have any suggestions or doubts regarding this topic, please contact us…

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">