views:

407

answers:

2

How can I create a Winamp-Style multiple-form snapped application in C# and .net 2.0?

+2  A: 

Easy!

  1. Create three forms
  2. Add code to custom-draw everything on those three forms
  3. Add logic to handle the user clicking and dragging anywhere on any of the forms, such that the window is moved normally until it comes within a certain distance of another one of your own forms (or the edge of the screen), in which case you would snap the window position to that edge.

I look forward to your follow-up questions...

Shog9
Piece of cake. Half a weekend worth of work! :D
Greg D
Almost next next finish :D
Ólafur Waage
How can I run three windows at the same time and control each of them individually?
You can run any number of windows simultaneously, provided you don't block the message pump. There's no real trick to it... you just create and show the windows.
Shog9
+1  A: 

this works perfect for Windows Forms http://www.codeproject.com/KB/cs/stickywindows.aspx

Andrija