0
我開始了Windows Forms的新項目。第一頁是UserLogin
。在表單加載事件中,我將數據庫中的登錄表導入內存。 我正在使用所有讀取和寫入操作方法存儲的類。錯誤:'classA'在當前上下文中不存在
當我打電話formload事件的類,錯誤來「在目前情況下不列入存在」
我可能會丟失一些參考或headerfilename ..
請提前
幫助 謝謝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.Configuration;
using System.Web;
namespace InvestmentAndReturns
{
public partial class UserLogin : Form
{
public UserLogin()
{
InitializeComponent();
CenterToScreen();
}
public string UserID = null;
private string userPass = null;
public string UserGroup = null;
DataTable UserLoginTable;
int logintry = 1;
public bool LoginStatus = false;
private void Form1_Load(object sender, EventArgs e)
{
txtUserID.Select();
string cmd = "Select * from UserLogin";
UserLoginTable = DbRdRw.SqlDbRead(cmd, "UserLogin");
}
DbRdRw:這是 類SqlDbRead:這個被讀取方法
不知道如何使dll 我目前正在學習winforms – Sam