错误 1 非静态的字段、方法或属性“WindowsFormsApplication1.DataOperate.getCom(string)”要求对象引用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 System.Data.OleDb;
using System.Net;
using WindowsFormsApplication1;namespace WindowsFormsApplication1
{
    public partial class FrmMain : Form
    {
        public FrmMain()
        {
            InitializeComponent();
        }        DataOperate dataoperate = new DataOperate();
        DataSet ds;        private void button1_Click(object sender, EventArgs e)
        {
            string myname = Dns.GetHostName();
            IPHostEntry mys = Dns.GetHostEntry(myname);
            this.textBox1.Text = mys.AddressList[0].ToString();
                        DataOperate.getCom("insert into xxb(ID,ZJMC,ip_address)values('" + textBox1.Text + "','" + textBox1.Text + "','" + textBox1.Text + "')");        }
    }
}