Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / April 2005

Tip: Looking for answers? Try searching our database.

Moving a window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cameron - 20 Apr 2005 16:11 GMT
I stripped off the frame from a window but I still want the user to be
able to move it. If the user click on the background and moves the mouse
around I have some code that hooks into that and does the move but the
window keeps trying to redraw itself and it greats really crazy. Is
there an nice way to do this? Hook into the default moving stuff without
any custom code type thing?

Thanks

-Cam
Herfried K. Wagner [MVP] - 20 Apr 2005 17:18 GMT
"Cameron" <cameron@appdepot.com> schrieb:
>I stripped off the frame from a window but I still want the user to be
> able to move it.

<URL:http://www.dotnetrix.co.uk/misc.html>
-> "Move a borderless form."

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>

Cameron - 20 Apr 2005 23:39 GMT
Excellent. That worked like a charm once I found the number for the
double click.

Thanks!

-Cam

> "Cameron" <cameron@appdepot.com> schrieb:
>
[quoted text clipped - 3 lines]
> <URL:http://www.dotnetrix.co.uk/misc.html>
> -> "Move a borderless form."
Galaxia - 21 Apr 2005 02:00 GMT
On the other side, can I forbid the moving a normal form with the title bar?

"Cameron" <cameron@appdepot.com> schrieb:
>I stripped off the frame from a window but I still want the user to be
> able to move it.

<URL:http://www.dotnetrix.co.uk/misc.html>
-> "Move a borderless form."

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>

Herfried K. Wagner [MVP] - 21 Apr 2005 10:55 GMT
"Galaxia" <Galaxia.X@gmail.com> schrieb:
> On the other side, can I forbid the moving a normal form with the title
> bar?

Preventing a form from being moved
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=nonmoveableform&lang=en>

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.