
Mix3rn
Norway
Asked
— Edited
Hi DJ!
After a couple of hours programming in Visual C# I was wondering if it was possible to send commands (for example set servoposition) from another form than the main form containing the ezb-connect.
Hope you understand what I'm trying to do
Have the main form display the connect to ezb, and a button to open a new form where there are buttons to control servos.
Thank you :-)
- Mix3rn
Ie.
Rc = form1.control1.method(parameter1,parapmeter2,etc)
If rc = 0 "success"
Else "failure"
Endif
Alan
Add the EZ-B Connect control. Look through the property panel for the control and set it to PUBLIC.
From another form, you can now reference that form's public objects (ez-b connect being one of them)
You may have to pass an instance of the form (this) to the other form.
Do you have a code example to my project`?
Thank you very much!