c# - Visual Studio 2017 表单
问题描述
再会
我正在 VS2017 中开发一个 Windows 应用程序表单,但是我收到以下错误“无法分配给 txtEmail,因为它是一个方法组”
“EmployeeRquestFormUI.txtEmail() 是一种在给定上下文中无效的方法”
代码可能有什么问题:请参阅下面的代码
employeeRequestFormUI.txtJob_Desc = new System.Windows.Forms.TextBox();
employeeRequestFormUI.txtEmail = new System.Windows.Forms.TextBox();
employeeRequestFormUI.txtTelExt = new System.Windows.Forms.TextBox();
employeeRequestFormUI.txtRequestedBy = new System.Windows.Forms.TextBox();
employeeRequestFormUI.radioLaptop = new System.Windows.Forms.RadioButton();
employeeRequestFormUI.radioDesktop = new System.Windows.Forms.RadioButton();
employeeRequestFormUI.txtDepartment = new System.Windows.Forms.ComboBox();
employeeRequestFormUI.richTextBox1 = new System.Windows.Forms.RichTextBox();
解决方案
寻找
EmployeeRquestFormUI.txtEmail()
并取下大括号
EmployeeRquestFormUI.txtEmail
推荐阅读
- node.js - 如何在 Cloud Functions 中读取 Firestore Geopoint 坐标
- javascript - Laravel 5.6 - 选中框时增加数字
- python - python中的多个日期验证
- ios - 对 SceneKit 中相机的正交投影感到困惑
- javascript - 如何在 mysql / express 中使用变量作为列名?
- javascript - 将图像从我的页面下载到我的文件夹,然后将此图像拖放到我的输入文件中
- r - 无法将边/路径/顶点添加到树
- c# - 什么可以阻止 OnDisconnectedAsync 为可耻地断开连接的客户端调用?
- javascript - 使用 Selenium webdriver 和 Python 获得完全渲染的 HTML
- java - 如何在不使用 Spring Boot Async 重新加载页面的情况下提交表单?