using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using MySQLDriverCS;private void Formt_Load(object sender, System.EventArgs e)
{
try
{
conn = new MySQLConnection(new MySQLConnectionString ("localhost","abuzar","root","1").AsString);
conn.Open();
}
catch (MySQLException ex)
{
MessageBox.Show( "Error connecting to the server: " + ex.Message );
}string strSel="select userid, username, userpassword from abuzar.user where userid=001;";
MySQLDataAdapter da = new MySQLDataAdapter(strSel,conn);
DataSet ds = new DataSet();
da.Fill(ds,"user");
this.textBox1.Text=ds.Tables["user"].Rows[0][0].ToString();
this.textBox2.Text=ds.Tables["user"].Rows[0][1].ToString();为什么执行结果this.textBox1.Text=system.bity[]
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using MySQLDriverCS;private void Formt_Load(object sender, System.EventArgs e)
{
try
{
conn = new MySQLConnection(new MySQLConnectionString ("localhost","abuzar","root","1").AsString);
conn.Open();
}
catch (MySQLException ex)
{
MessageBox.Show( "Error connecting to the server: " + ex.Message );
}string strSel="select userid, username, userpassword from abuzar.user where userid=001;";
MySQLDataAdapter da = new MySQLDataAdapter(strSel,conn);
DataSet ds = new DataSet();
da.Fill(ds,"user");
this.textBox1.Text=ds.Tables["user"].Rows[0][0].ToString();
this.textBox2.Text=ds.Tables["user"].Rows[0][1].ToString();为什么执行结果this.textBox1.Text=system.bity[]
我用你说的方法试过之后结果变成this.textBox1.Text=system.string