Quote Originally Posted by Eri523 View Post
That's what one might call it...
i knew it...

Quote Originally Posted by Eri523 View Post
Generally, there rarely is a need to touch the main() function of a Windows Forms application at all. I, personally, after having written dozens of Windows Forms programs (some of which are rather advanced), have modified that function perhaps two or three times, including experimental test programs.

In addition, you're mixing C++/CLI stuff with native C++ stuff in your code which should be avoided unless one has really good reasons to do so (and I see none of those here).
Like I mentioned, this is really my first C++/CLI program. I have programmed using Visual Basic (about 8 years ago) and I took C++ programming classes (4 years ago), so I was hoping that I could quickly relearn and then use C++/CLI for some things.

Quote Originally Posted by Eri523 View Post
The usually correct way of doing what you describe is to create a handler for the MouseMove event of your form, which can be easily done with the Forms Designer, and update your labels (which of course have been placed on the form the conventional way using the Forms Designer) from there. You'll find the mouse coordinates among the properties of the object passed to your handler as the e parameter.

In case it's not sufficient to only get notified about mouse moves while the mouse is over your form, you can either capture the mouse or poll the mouse position using the form's MousePosition property in a Timer Tick event handler. Which one of these options is more appropriate probably depends on the overall system environment your program is supposed to run in, that I don't know.
My original thought for this program was to have a set space, with an image of a circle, where going around the circle would coincide with the movement of the servo motor (when the position around the circle is clicked). Therefore observing the space over the form is definitely sufficient.

So now my question is, if you know, where I would add the code that would be responsible for sending the messages to the servo based on the form's response. Would that still be in the MouseEvent::Form1 code? (The program I used to control the servo as a test was previously written in C++, so I am hoping there won't be too much of an issue converting that code either.)

Quote Originally Posted by Eri523 View Post
Ah, and... Welcome to CodeGuru!
Thanks! I appreciate your help!