摘要: 1、event Action<string> 实现FormA打开FormB,FormB的值 回传到FormA上 FormA的代码: private void button1_Click(object sender, EventArgs e) { FrmB frm = new FrmB(); frm. 阅读全文
posted @ 2021-08-31 16:51 一叶孤城 阅读(1058) 评论(1) 推荐(0)
摘要: 修改 .sln文件里的划线部分,按照要降的版本进行修改,然后用对应版本的开发工具 打开 即可 阅读全文
posted @ 2021-04-02 16:16 一叶孤城 阅读(299) 评论(0) 推荐(0)
摘要: textBox3.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None) 阅读全文
posted @ 2020-09-29 14:13 一叶孤城 阅读(1749) 评论(0) 推荐(0)
摘要: 服务方法 1 [HttpGet] 2 public string GetWebName(string name,string pwd) 3 { 4 Dictionary<string, string> dict = new Dictionary<string, string>(); 5 dict.A 阅读全文
posted @ 2020-03-30 22:44 一叶孤城 阅读(906) 评论(0) 推荐(0)
摘要: 服务方法 1 [AllowAnonymousAttribute] 2 [HttpPost] 3 public string PostWebName(dynamic login) 4 { 5 Dictionary<string, string> dict = new Dictionary<string 阅读全文
posted @ 2020-03-30 22:18 一叶孤城 阅读(1241) 评论(0) 推荐(0)
摘要: 第一种服务方法 [FromBody]string 单值参数 1 [HttpPost] 2 public string PostWebNameOne([FromBody]string para) 3 { 4 Dictionary<string, string> dict = new Dictionar 阅读全文
posted @ 2020-03-30 22:00 一叶孤城 阅读(898) 评论(0) 推荐(0)
摘要: 第一步、WebServices提供的方法没有变动(需要可查看我的上一篇 Http POST方式) 第二步、为了让WebServices支持GET方式,则需要在Web.config配置文件中增加如下代码 1 <system.web> 2 <webServices> 3 <protocols> 4 <a 阅读全文
posted @ 2020-03-26 22:23 一叶孤城 阅读(885) 评论(0) 推荐(0)
摘要: 第一步、编写WebServices服务方法 1 [WebMethod] 2 public void PostJson(string str, string bb) 3 { 4 Dictionary<string, object> DictResult = new Dictionary<string, 阅读全文
posted @ 2020-03-26 21:53 一叶孤城 阅读(1119) 评论(0) 推荐(0)
摘要: 第一步、Winform项目引用WEB服务 第二步、代码声明实例化 Web引用 YzServ.TestServ yzserv = new WebYzServ.TestServ(); yzserv.AAA("参数值"); 阅读全文
posted @ 2020-03-26 20:40 一叶孤城 阅读(432) 评论(0) 推荐(0)
摘要: private void dgvBig_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) {if (dgvBig.Columns["IsBigWeight"]==null)return; if (dgvBig.C 阅读全文
posted @ 2019-09-06 18:10 一叶孤城 阅读(1770) 评论(0) 推荐(1)