悬赏园豆:20
[已解决问题]
解决于 2008-05-15 18:39
<P>我用vs2005 和SQL2005开发一个系统,做登录窗口时出现了一个错误</P>
<P> private void btnOk_Click(object sender, EventArgs e)<BR> {<BR> string username = cboUsername.Text;<BR> string password = txtpassword.Text;<BR> DsloginTableAdapters.QueriesTableAdapter q = new JXCGLXXXT.DsloginTableAdapters.QueriesTableAdapter();<BR> <FONT color=#ff0000> if ((username,password) != 0)</FONT><BR> {<BR> this.DialogResult = DialogResult.OK;<BR> this.Close();<BR> }<BR> else<BR> {<BR> MessageBox.Show("password wrong");<BR> }<BR> }</P>
<P>红色部分有问题!请问应该怎么写啊!我是新手,谢谢啊!第一次尝试着开发系统.</P>
问题补充:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Deployment.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug+ /debug:full /optimize- /out:obj\Debug\JXCGLXXXT.exe /resource:obj\Debug\JXCGLXXXT.frmBjd.resources /resource:obj\Debug\JXCGLXXXT.frmLogin.resources /resource:obj\Debug\JXCGLXXXT.frmMain.resources /resource:obj\Debug\JXCGLXXXT.frmQgd.resources /resource:obj\Debug\JXCGLXXXT.frmSplash.resources /resource:obj\Debug\JXCGLXXXT.Properties.Resources.resources /target:winexe Dslogin.Designer.cs DsQgd.Designer.cs frmBfd.Designer.cs frmBjd.cs frmBjd.Designer.cs frmLogin.cs frmLogin.Designer.cs frmMain.cs frmMain.Designer.cs frmQgd.cs frmSplash.cs frmSplash.Designer.cs Program.cs Properties\AssemblyInfo.cs Properties\Resources.Designer.cs Properties\Settings.Designer.cs "进销存系统DataSet.Designer.cs" "进销存系统DataSet1.Designer.cs"
F:\Working\JXCGLXXXT\frmLogin.cs(30,19): 错误 CS0117: “JXCGLXXXT.DsloginTableAdapters.QueriesTableAdapter”并不包含“userlogin”的定义