how do I move a borderless form? I tried looking on the internet, but nothing. Thanks a lot.
相关问题
- Laravel Option Select - Default Issue
- Is there a Delphi 5 component that can handle .png
- HTML form is not sending $_POST values
- How to use Control.FromHandle?
- Is there a way to install Delphi 2010 on Windows 2
相关文章
- 如何让cmd.exe 执行 UNICODE 文本格式的批处理?
- 怎么把Windows开机按钮通过修改注册表指向我自己的程序
- Warning : HTML 1300 Navigation occured?
- Bundling the Windows Mono runtime with an applicat
- Windows 8.1 How to fix this obsolete code?
- Show a different value from an input that what wil
- How can I detect/watch “dirty-status” of an angula
- CosmosDB emulator can't start since port is al
If you mean dragging the window by the mouse, you can override
WM_NCHITTEST
message handling and returnHTCAPTION
for the drag region. The below will drag the window within the upper 30 pixels for insance:You can drag a form using any contained control, including itself.
Using the following example, you can move a form by clicking on its canvas and dragging. You could do the same with a panel on the form by putting the same code in the panel's MouseDown event, which would let you create your own pseudo caption bar.