#Region " ClientAreaMove Handling "
Const WM_NCHITTEST As Integer = &H84
Const HTCLIENT As Integer = &H1
Const HTCAPTION As Integer = &H2
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
Select Case m.Msg
Case WM_NCHITTEST
MyBase.WndProc(m)
If m.Result = HTCLIENT Then m.Result = HTCAPTION
'If m.Result.ToInt32 = HTCLIENT Then m.Result = IntPtr.op_Explicit(HTCAPTION) 'Try this in VS.NET 2002/2003 if the latter line of code doesn't do it... thx to Suhas for the tip.
Case Else
'Make sure you pass unhandled messages back to the default message handler.
MyBase.WndProc(m)
End Select
End Sub
#End Region
Moving Form borderless VB.NET
moving form borderless
ความเห็น
ยังไม่มีความเห็น
บทความในวันเดียวกัน
เด็กข้างบ้าน ~natadee · 10 มิ.ย. 2551
RteeJoy !! · 10 มิ.ย. 2551
ดอกแก้ว · 10 มิ.ย. 2551
ดอกแก้ว · 10 มิ.ย. 2551
นาย ณัฐวุฒิ พลครุฑ · 10 มิ.ย. 2551
ธีรวัลย์ แสงสุวรรณ · 10 มิ.ย. 2551
ขจิต ฝอยทอง · 10 มิ.ย. 2551