问题描述
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;namespace人力资源管理系统{publicpartialclassfrmLogin:Form{publicfrmLogin(){InitializeComponent();}privatevoid登录窗体_Load(objectsender,EventArgse){}publicboolbResult=false;publicstringUserId="";publicstringUserPwd="";privatevoidtxbPwd_KeyPress(objectsender,System.WindowsFormsSection.FormStartPosition.KeyPressEventArgse){if(e.KeyChar==(char)13&&(UserControl!="")){this.btnSummit_Click(null,null);}}privatevoidtxbUserId_KeyPress(objectsender,System.WindowsFormsSection.FormStartPosition.KeyPressEventArgse){if(e.KeyChar==(char)13){this.txbPwd.Focus();}}privatevoidtxbUserId_Leave(objectsender,System.EventArgse){DataBasedb=newDataBase();DataViewdv=db.RunSelectSQL("Select密码from用户清单where用户编码='"+this.txbUserId.Text.Trim()+"'");if(dv.Count==0){this.txbUserId.Txet="";this.txbPwd.Txet="";}else{UserId=this.txbUserId.Text.Trim();this.UserPwd=dv.Item[0]["密码"];}db.Dispose();}privatevoidbtnSummit_Click(objectsender,System.EventArgse){if((this.UserPwd.Trim()==this.txbPwd.Text.Trim())&&UserPwd!=""){bResult=ture;this.Close();}else{bResult=false;MessageBox.Show("请确认你的密码是否证正确");}}privatevoidbtnClear_Click(objectsender,System.EventArgse){this.CloseReason();Application.Exit();}}}错误1命名空间“System”中不存在类型或命名空间名称“WindowsFormsSection”(是缺少程序集引用吗?)C:DocumentsandSettingsOwner桌面代码(1)登录窗体.cs2360人力资源管理系统
解决方案
解决方案二:
该回复于2011-12-12 10:54:12被版主删除
解决方案三:
System.WindowsFormsSection.FormStartPosition.KeyPressEventArgs->System.Windows.Forms.KeyPressEventArgs
解决方案四:
那个是自动生成的?貌似不对