|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
how to move a form that FormBorderStyle is NoneDear All,
How to move a form that FormBorderStyle is None? I want to use mouse drag method.. Best reagrds, Boki. see, for instance:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskCreatingNon-StandardShapedWindowsForms.asp ' Visual Basic Private Sub Form1_MouseDown(ByVal sender As Object, _ ByVal e As MouseEventArgs) Handles MyBase.MouseDown Dim xOffset As Integer Dim yOffset As Integer If e.Button = MouseButtons.Left Then xOffset = -e.X - SystemInformation.FrameBorderSize.Width yOffset = -e.Y - SystemInformation.CaptionHeight - _ SystemInformation.FrameBorderSize.Height mouseOffset = New Point(xOffset, yOffset) isMouseDown = True End If End Sub -tom Boki ha scritto: Show quoteHide quote > Dear All, > > How to move a form that FormBorderStyle is None? > > I want to use mouse drag method.. > > Best reagrds, > Boki. Boki,
You mean something as this on our website. http://www.vb-tips.com/default.aspx?ID=72f58d3f-2cb5-4d51-b148-a2eda88e06ee I hope this helps, Cor Show quoteHide quote "Boki" <bokit***@ms21.hinet.net> schreef in bericht news:1145414234.286732.237480@g10g2000cwb.googlegroups.com... > Dear All, > > How to move a form that FormBorderStyle is None? > > I want to use mouse drag method.. > > Best reagrds, > Boki. > "Boki" <bokit***@ms21.hinet.net> schrieb: <URL:http://www.dotnetrix.co.uk/misc.html>> How to move a form that FormBorderStyle is None? -> "Move a borderless form." -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
Listview SubItems image index
Emailing with default client webbrowser System.IO.FileNotFoundException Writing INI section failing 1.1 and 2.0 .Net framework in same application? Is it possible to compile an image file into a DLL or EXE file? Dynamically reading structure fields Two way collection Listview item key Print rows from DataGrid matching criteria |
|||||||||||||||||||||||