473,394 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Magnetic forms in C#


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.

--
It is only through the heart that one can see rightly. (The Little Prince)
MickeyMicks
Sep 8 '06 #1
2 5651
Theres an example here. It mentions delphi, but its in the c# section of
codeproject so its likely to be the right language.

http://www.codeproject.com/csharp/stickywindows.asp

--
Regards

John Timney (MVP)
"mickeymicks" <mi*********@discussions.microsoft.comwrote in message
news:AC**********************************@microsof t.com...
>
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.

--
It is only through the heart that one can see rightly. (The Little Prince)
MickeyMicks

Sep 8 '06 #2
http://www.codeproject.com/csharp/stickywindows.asp
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! :)
Sep 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lumpierbritches | last post by:
Thank you in advance for any and all assistance. It is greatly appreciated. Has anyone used Access to keep track with reader/writer magnetic encoders? I have purchased a Fargo Printer that does...
1
by: Richard Beacroft | last post by:
Does anyone know how to simulate a magnetic swipe. i.e. send key strokes (those outside the alphanumeric range)?
1
by: ryan.arasteh | last post by:
Hi, I want to write a c# application to capture the contents of a magnetic stripe card with a card reader attached to the USB or COM port of the PC. Are there any libraries or anything available...
1
by: ryan.arasteh | last post by:
Hi, I want to write a c# application to capture the contents of a magnetic stripe card with a card reader attached to the USB or COM port of the PC. Are there any libraries or anything...
5
by: RedEye | last post by:
Hello, I need to toss together a quick pocket pc app that uses a magnetic strip reader as it's primary method of input. I was wonder if there are any open source API's for this. Thanks for...
3
applets
by: applets | last post by:
Is there an activeX component in connecting a magnetic card reader in vb6.0 application? im currently working on a project that includes scanning magnetic card into the vb application is there a...
2
by: perpetualsoft | last post by:
well, I want to develop a application in VB 6.0 which get value from magnetic card through MSR and save in text field. Basically I using Magnetic Slot Reader with Keyboard Interface. its a product of...
35
by: creative1 | last post by:
Hi everyone I am working on a project and have to connect mx3-usb magnetic card reader with buildin software installation facility. I want to collect customer information by their driving licence....
0
by: saifullah | last post by:
Magnetic Bracelets - an alternative therapy For many thousands of years Lodestone, a naturally occuring magnet, was used in healing the body. Early writings in many different countries...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.