c# 示例 点击按钮打开图片

上传者: elaron | 上传时间: 2021-03-29 10:38:30 | 文件大小: 33KB | 文件类型: RAR
一个form上面有一个按钮即一个图片显示框。 点击按钮后,实例化一个openFileDialog 类对象,然后打开用户选中的图片。 并且可以根据图片的大小调节button的长度以及窗口的大小

文件下载

资源详情

[{"title":"( 22 个子文件 33KB ) c# 示例 点击按钮打开图片","children":[{"title":"showPicApp","children":[{"title":"showPicApp.sln <span style='color:#111;'> 920B </span>","children":null,"spread":false},{"title":"showPicApp.suo <span style='color:#111;'> 7.00KB </span>","children":null,"spread":false},{"title":"showPicApp","children":[{"title":"showPicApp.csproj <span style='color:#111;'> 3.64KB </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"showPicApp.vshost.exe <span style='color:#111;'> 13.99KB </span>","children":null,"spread":false},{"title":"showPicApp.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"showPicApp.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"showPicApp.exe <span style='color:#111;'> 8.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"showPicApp.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"showPicApp.csproj.GenerateResource.Cache <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":"showPicApp.csproj.FileListAbsolute.txt <span style='color:#111;'> 570B </span>","children":null,"spread":false},{"title":"showPicApp.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"showPicApp.exe <span style='color:#111;'> 8.50KB </span>","children":null,"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"showPicApp.MyForm.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 492B </span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • mousefly310210520 :
    还可以,能运行起来
    2018-04-03
  • Sngan :
    还不错,正好需要
    2016-06-23
  • lsd0532 :
    还可以,能运行起来
    2015-12-09
  • 思寻的瞬间 :
    程序很好,可以解决问题
    2015-11-06
  • qq_22914433 :
    很好的例子
    2015-08-02
  • qq_29125173 :
    很好的资源啊!点赞
    2015-06-18
  • yangjiali111 :
    非常好!!可以用
    2015-05-15
  • u010253737 :
    很有用 谢谢~
    2014-06-07
  • a530125 :
    很直观,没有那么多附加的东西,很容易理解
    2014-05-06
  • 沐飏 :
    挺好用的,适合初学者~
    2014-03-22

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明