Making a form without a border is nice to see especially when the user don’t want his form to minimize and maximize. I have here the following code that will make a borderless form draggable.
‘Declare these 2 variables with class scope
Private Const WM_NCLBUTTONDOWN As Integer = &HA1S
Private Const HTCAPTION As Integer = 2
‘Then handle your form.MouseDown event
Private Sub Form1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown
Me.Capture = False
Dim msg As Message = Message.Create(Me.Handle, WM_NCLBUTTONDOWN, New IntPtr(HTCAPTION), IntPtr.Zero)
Me.DefWndProc(msg)
End Sub
No tags












Rufor · May 10, 2009 at 10:37 pm
Hello,
Thanks for article. Everytime like to read you.
Have a nice day
viagra · May 14, 2009 at 7:07 pm
It is the coolest site,keep so!
Bodyc · May 23, 2009 at 4:15 pm
Hi, Onload of page my antivirus put alert, check pls.
Have a nice day
Bodyc
Admin comment by shyguy · May 28, 2009 at 8:14 pm
I think the there’s no conflict between anti virus and your code. What anti-virus you are using now?
propecia · June 7, 2009 at 5:32 am
Excellent site, It was pleasant to me.
GarykPatton · June 16, 2009 at 3:25 am
You know so many interesting infomation. You might be very wise. I like such people. Don’t top writing.
viagra · June 24, 2009 at 6:36 pm
Thanks
Johnzz · April 6, 2010 at 3:33 pm
Hey
Just a quick hello from as I’m new to the board. I’ve seen some interesting comments so far.
To be honest I’m new to forums in general
John
adelinaitaly · April 13, 2010 at 4:08 am
Dear friends,
My name is Adelina. I am a 22 years girl from Italy. I was looking for a free translation software and I found one.
Program’s name is Babel Fish and iIt supports 75 languages. I installed it but I could not understand how to use it. I am not a computer expert. Can someone help me please on how to run this.
The link is here:
http://access.im/3/babelfish
I thank you very much for your help.