会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一叶孤城
如果不会飞翔 理想的翅膀 反倒成了生活的累赘......
博客园
首页
新随笔
联系
订阅
管理
2021年8月31日
委托 event Action<string>/event Action 的使用
摘要: 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)
2021年4月2日
VS降版本
摘要: 修改 .sln文件里的划线部分,按照要降的版本进行修改,然后用对应版本的开发工具 打开 即可
阅读全文
posted @ 2021-04-02 16:16 一叶孤城
阅读(299)
评论(0)
推荐(0)
2020年9月29日
Split分割 换行符
摘要: textBox3.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None)
阅读全文
posted @ 2020-09-29 14:13 一叶孤城
阅读(1749)
评论(0)
推荐(0)
2020年3月30日
c# Winfom客户端 GET 访问WebApi 方法
摘要: 服务方法 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)
c# Winfom客户端 POST访问WebApi 方法
摘要: 服务方法 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)
Ajax 以Post 方式 访问 WebAPI 服务
摘要: 第一种服务方法 [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)
2020年3月26日
c# winform 访问WebServices服务 (通过Http GET方式)
摘要: 第一步、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)
c# winform 访问WebServices (通过Http Post方式)
摘要: 第一步、编写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)
c# winform 访问WebServices 服务(通过WEB引用的方式进行访问)
摘要: 第一步、Winform项目引用WEB服务 第二步、代码声明实例化 Web引用 YzServ.TestServ yzserv = new WebYzServ.TestServ(); yzserv.AAA("参数值");
阅读全文
posted @ 2020-03-26 20:40 一叶孤城
阅读(432)
评论(0)
推荐(0)
2019年9月6日
C# datagridview 格式化单元格内容
摘要: 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)
下一页
公告