Product, version and build: PowerShell Studio 2015
32 or 64 bit version of product: 64bit
Operating system: Windows 7 Enterprise
32 or 64 bit OS: 64bit
Hello,
I have a form that has "formborderstyle" set to NONE. How to make that it can be moved with the mouse around the screen.
Janusz Biel
form move with mouse
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: form move with mouse
[POST MOVED TO THE POWERSHELL GUI FORUM BY MODERATOR]
The Form movement is handled by the Window's frame, there for if you want to move the form you will have to implement the code using the MouseMove event or create some C# code to interface with the Windows API.
Please refer to the following link:
http://stackoverflow.com/questions/1592 ... rm-movable
David
The Form movement is handled by the Window's frame, there for if you want to move the form you will have to implement the code using the MouseMove event or create some C# code to interface with the Windows API.
Please refer to the following link:
http://stackoverflow.com/questions/1592 ... rm-movable
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: form move with mouse
The attached psf file will demo how to make any form or control moveable via mouse capture.
- Attachments
-
- Demo-ControlTricks.psf
- (20.77 KiB) Downloaded 542 times
- rmckay9969
- Posts: 63
- Last visit: Fri Feb 01, 2019 6:51 pm
Re: form move with mouse
Very cool stuff there, your examples never fail to amaze me.jvierra wrote:The attached psf file will demo how to make any form or control moveable via mouse capture.
Re: form move with mouse
Thank you. My good friend, Gandalf,taught me well.rmckay9969 wrote:Very cool stuff there, your examples never fail to amaze me.jvierra wrote:The attached psf file will demo how to make any form or control moveable via mouse capture.
On the serious side ... a good book on the Windows Forms will do wonders:
Exhibit 'A' - http://www.amazon.com/Professional-Wind ... 1861005547
Exhibit 'B' - http://www.amazon.com/Programming-Micro ... 0735621535
- rmckay9969
- Posts: 63
- Last visit: Fri Feb 01, 2019 6:51 pm
Re: form move with mouse
Well, I was not disappointed with the last bit of reading advice you gave me. I will check these suggestions out as well.jvierra wrote:Thank you. My good friend, Gandalf,taught me well.rmckay9969 wrote:Very cool stuff there, your examples never fail to amaze me.jvierra wrote:The attached psf file will demo how to make any form or control moveable via mouse capture.
On the serious side ... a good book on the Windows Forms will do wonders:
Exhibit 'A' - http://www.amazon.com/Professional-Wind ... 1861005547
Exhibit 'B' - http://www.amazon.com/Programming-Micro ... 0735621535