最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

C#

【教程】抓取网并提取网页中所需要的信息 之 C#版

【教程】抓取网并提取网页中所需要的信息 之 C#版

crifan 12年前 (2012-11-23) 15121浏览 17评论

在通过: 【整理】关于抓取网页,分析网页内容,模拟登陆网站的逻辑/流程和注意事项 了解了抓取网页的一般流程之后,加上之前介绍的: 【总结】浏览器中的开发人员工具(IE9的F12和Chrome的Ctrl+Shift+I)-网页分析的利器 应该就...

【已解决】C#获得图片大小

【已解决】C#获得图片大小

crifan 12年前 (2012-10-18) 2389浏览 0评论

【问题】 C#中,需要获得图片大小 【解决过程】 参考: how to get the image dimensions from the file name 写出对应代码: using System.Drawing; //C:/Users/CLi/...

【已解决】C#固定窗口大小

【已解决】C#固定窗口大小

crifan 12年前 (2012-10-03) 7612浏览 0评论

【问题】 想要把一个C#窗口的大小设置位固定大小,不允许用户拖动改动窗体大小。   【解决过程】 1.结果竟然一时么有找到相关的配置属性。 2.后来还是网上搜到了,去把Winform窗体的属性FormBorderStyle设置为fixedX...

【已解决】Win7中运行exe出错:应用程序中发生了无法处理的异常。未能加载文件或程序集“Microsoft.mshtml,Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b3f5f7f11d50a3a”或它的某一个依赖项。系统找不到指定的文件

【已解决】Win7中运行exe出错:应用程序中发生了无法处理的异常。未能加载文件或程序集“Microsoft.mshtml,Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b3f5f7f11d50a3a”或它的某一个依赖项。系统找不到指定的文件

crifan 12年前 (2012-09-29) 8276浏览 1评论

【问题】 通过之前的折腾: 【已解决】C#中集成DLL库到自己的exe程序中 已经实现了将dll文件,Interop.SHDocVw.dll,集成到了exe中了。 C#项目编译出来的exe: 1.4版本的 downloadSongtasteMusic...

【已解决】C#中动态刷新Treeview的TreeNode节点的图标

【已解决】C#中动态刷新Treeview的TreeNode节点的图标

crifan 12年前 (2012-09-28) 6456浏览 0评论

【背景】 想要实现类似于windows XP资源管理器中的树形列表中的,点击加号,可以展开文件夹的同时,对应节点的图标也变成打开的文件夹的图标。 功能上,节点的展开Expand和闭合Collapse已经实现,现在需要实现对应打开的文件夹图标...

【已解决】C#编译出来的程序运行出错:System.Configuration.ConfigurationErrorsException: Error creating the Web Proxy specified in the 'system.new/defaultProxy' configuration section.

【已解决】C#编译出来的程序运行出错:System.Configuration.ConfigurationErrorsException: Error creating the Web Proxy specified in the ‘system.new/defaultProxy’ configuration section.

crifan 12年前 (2012-09-27) 5561浏览 0评论

【问题】 一个C#编译出来的exe程序,该exe是单独的exe,无额外的配置文件等东西。 exe放到一个Win7下的共享盘里面,然后在另外一台电脑上,访问该exe,直接运行,出错: Error creating the Web Proxy spec...

【已解决】C#编译出来的程序运行出错:Unhandled exception has occurred in your application。System.IO.FileNotFoundException: Could not load file or assembly xxx or one of its dependencies. The system cannot find the file specified.

【已解决】C#编译出来的程序运行出错:Unhandled exception has occurred in your application。System.IO.FileNotFoundException: Could not load file or assembly xxx or one of its dependencies. The system cannot find the file specified.

crifan 12年前 (2012-09-27) 12620浏览 0评论

【问题】 之前折腾C#项目中,将dll集成到exe中,后来使用的办法是,不使用资源文件,不适用动态reflection代码,直接拷贝dll到项目文件夹内,然后添加引用该dll文件。 结果生成的exe运行出错:   错误内容: Unhand...

62 queries in 0.161 seconds, using 21.98MB memory