Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Existing Project (Windows Forms) + Visual Micro (Read 3057 times)
vitorsotero
Newbies
*
Offline


Posts: 2
Joined: Nov 19th, 2015
Existing Project (Windows Forms) + Visual Micro
Nov 19th, 2015 at 6:36pm
Print Post  
Hi,

I already had an existing project in Visual Studio (Windows Forms) and then installed micro visual. So, I opened one existing arduino scretch on Visual Studio. My Solution now has the arduino project and the windows forms project. But I don't know how to "connect" both. Do I need to add a serialport (toolbox) on my Windows Forms project? Or can I just "run" the solution?

Thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Existing Project (Windows Forms) + Visual Micro
Reply #1 - Nov 20th, 2015 at 4:59pm
Print Post  
Hi

I am not entirely clear about your question.

If you are asking how to build and deploy each project then it is important to right click the project name in the solution explorer and click "Set as Startup project". Then F5/Start will build and deploy for arduino or for windows.

You can also right click project names and you will find individual build and deploy options so you can experiment with the best workflow for you.

There is not need to have both projects in a single solution. You might find it easier to open the ide twice and load one project into each.

If you are asking how to make a windows program communicate with an arduino using serial then you need to use sites such as stackoverflow to answer your questions. In short the c# windows app will have a SerialPort either via the toolbox it one exists of defined in your code after importing the System.IO namespace and using SerialPort myport = new SerialPort(). Don't forget to read about setting the correct Baud rate (speed) to match your arduino Serial.begin() code.

I hope this helps.

  
Back to top
WWW  
IP Logged
 
vitorsotero
Newbies
*
Offline


Posts: 2
Joined: Nov 19th, 2015
Re: Existing Project (Windows Forms) + Visual Micro
Reply #2 - Nov 20th, 2015 at 5:07pm
Print Post  
Thanks!!

My question was about to use or not to use the serialport on c#. 

Thanks again.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint