New improved move borderless form native method
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
3 posts
Page 1 of 1
I have not posted for a while and me and a friend found a native method of making moveable form 
here is complete new code:

here is complete new code:
Code: Select all
Imports System.Runtime.InteropServices
Public Class Form1
<DllImport("user32.dll")> _
Public Shared Function ReleaseCapture() As Boolean
End Function
<DllImport("user32.dll")> _
Public Shared Function SendMessage(ByVal hWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
End Function
Private Sub Form1_MouseDown(sender As Object, e As MouseEventArgs) Handles MyBase.MouseDown
ReleaseCapture()
SendMessage(Handle, &HA1, &H2, 0)
End Sub
Private Sub Form1_MouseMove(sender As Object, e As MouseEventArgs) Handles MyBase.MouseMove
ReleaseCapture()
SendMessage(Handle, &HA1, &H2, 0)
End Sub
End Class
<a href="http://www.points2shop.com/s/xbox_point ... 5082"><img src="http://points2shop.com/images/promotion ... ricoxg.gif" border="0"/></a>
this code is really cool,,, this makes coding more easy and faster..... cooll;
nice one bro cooll; but there is also a method without using dll's
3 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023