Magnetic forms in C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Has anyone tried to do magnetic forms in c# already?

Basically i want to emulate the behaviour of Winamp, wherein the forms
get magnetized to each other. I've seen this done in some components
thru delphi.

I started to do it manually mostly using Move event of a form..
and since i'm new to .net and c# (about 1 week new. hehehe) i made
little progress. i would really appreciate it if i could get a reference or
a re-usable code.

thank you.
 

hey! thanks!
this is exactly what i was looking for. the code works like magic specially
with
the "form dragging" feature (from the messages for that project).

i was looking at codeproject earlier, but was searching for "magnetic" forms,
and didnt find any. so i tried to do the effect thru the Move event of a form.
its working now, but i'd rather use the solution from codeproject, since i
only
needed to add the "StickyWindow" object to my form. although, it has some
slight
problem when the main form is moved all the child forms also move even if
none of them has actually stucked with the main form.

should have tried to search for "sticky" instead. hehehe.

thanks again! :)
 
Back
Top