Hi there, I'm new to C# and struggling with getting my head around Visual Studio 2010, I've written a program (reading data from a mems device using i2c) and am trying to get it to run through VS but can't even get a small test program to work.
Heres the code Ive got for the test program running from a basic form
The error "No overolad for method "Navprog" takes 0 arguments gets thrown up when I try to complle.
(The EZB bits are all related to the microcontroller Im using (EZ-Robot) and scope of my project is using data from a gyro, accelometer and compass module using i2c).
If anyone could shed any light on what I need to do to get it to run that would be great, sorry if its a really simple thing but I'm getting nowhere with this.
Thanks Tom
Heres the code Ive got for the test program running from a basic form
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using EZ_B;
namespace WindowsFormsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public void Navprog(EZB ezb0, EZB ezb1, EZB ezb2, EZB ezb3, EZB ezb4)
{
ezb0.I2C.Start(); //full code would be inserted here once working
MessageBox.Show("test");
}
private void button1_Click(object sender, EventArgs e)
{
Navprog(); //this line throws the error..
}
}
}
The error "No overolad for method "Navprog" takes 0 arguments gets thrown up when I try to complle.
(The EZB bits are all related to the microcontroller Im using (EZ-Robot) and scope of my project is using data from a gyro, accelometer and compass module using i2c).
If anyone could shed any light on what I need to do to get it to run that would be great, sorry if its a really simple thing but I'm getting nowhere with this.
Thanks Tom