Moving Boarderless forms w/ Picture boxs.?!?
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
7 posts
Page 1 of 1
Hey guys can someone tell me how would you move a boarderless form with a picture box 

Last edited by Livengood on Thu Mar 18, 2010 9:02 am, edited 1 time in total.
i have no idea.
‼ <----- Copy it,it is together and if you backspace it it will both erase
☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"<-----Some Cool symbols.
♂<-----Boy Symbol
²ƽ<--------Mini 2 and 5!
ð<----Not sure what it is.
☺☻<-----Smiles
♪♫<----Music Notes
Others:ß┬ƒ○║■ã¿┼↑
☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"<-----Some Cool symbols.
♂<-----Boy Symbol

²ƽ<--------Mini 2 and 5!
ð<----Not sure what it is.
☺☻<-----Smiles
♪♫<----Music Notes
Others:ß┬ƒ○║■ã¿┼↑
If you put this code just below the public class "Public Class Form1":
............................................................................................
'And then in order to move your form put this code inside the "Form1_MouseDown" event:
...........................................................................................................................
'That will let you move the form without a border . You can use it in picturebox_mousedown aswell for example if you wanted too.
............................................................................................
Code: Select all
Public Const WM_NCLBUTTONDOWN As Integer = &HA1
Public Const HTCAPTION As Integer = &H2
<Runtime.InteropServices.DllImport("User32.dll")> _
Public Shared Function ReleaseCapture() As Boolean
End Function
<Runtime.InteropServices.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
'And then in order to move your form put this code inside the "Form1_MouseDown" event:
...........................................................................................................................
Code: Select all
.................................................................................................................................................................................If e.Button = MouseButtons.Left Then
ReleaseCapture()
SendMessage(Handle, WM_NCLBUTTONDOWN, HTCAPTION, 0)
End If
'That will let you move the form without a border . You can use it in picturebox_mousedown aswell for example if you wanted too.
Wow,your good at coding hungryhound.
‼ <----- Copy it,it is together and if you backspace it it will both erase
☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"<-----Some Cool symbols.
♂<-----Boy Symbol
²ƽ<--------Mini 2 and 5!
ð<----Not sure what it is.
☺☻<-----Smiles
♪♫<----Music Notes
Others:ß┬ƒ○║■ã¿┼↑
☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"<-----Some Cool symbols.
♂<-----Boy Symbol

²ƽ<--------Mini 2 and 5!
ð<----Not sure what it is.
☺☻<-----Smiles
♪♫<----Music Notes
Others:ß┬ƒ○║■ã¿┼↑
Sorry for this post but, I dont think its allowed to post useless posts like ';)' and ':)' or just smiled things If you are going to post post something too read or nothing at all if you dissagree with this just delete it
Hi Livengood
Credit goes to Codenstuff for this Code
Credit goes to Codenstuff for this Code

7 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023