上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 29 下一页
摘要: 一个初学者,把知识做个积累,如果有不对的地方,还请高手指出,谢谢! 先看一段代码:(下面是以Window WPF进行讲解,如果是Web 的话就把<Window改为<Page 而如果是 UserControl 的话,就改成<UserControl ... ) <Window x:Class="brus 阅读全文
posted @ 2017-06-02 09:46 寒夜美美 阅读(6801) 评论(0) 推荐(1) 编辑
摘要: 第一步:先借助一个类文件 AutoSizeFormClass.cs class AutoSizeFormClass { public struct controlRect { public int Left; public int Top; public int Width; public int 阅读全文
posted @ 2017-03-08 11:42 寒夜美美 阅读(2541) 评论(0) 推荐(0) 编辑
摘要: System.IO.Directory.GetCurrentDirectory()方法用于获得应用程序当前工作目录。System.Windows.Forms.Application.StartupPath 获得应用程序的可执行文件的路径,不含文件名StartupPath 可执行文件固定就不会变,可用 阅读全文
posted @ 2017-02-22 17:11 寒夜美美 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 在c#中退出WinForm程序包括有很多方法,如:this.Close(); Application.Exit();Application.ExitThread(); System.Environment.Exit(0); 等他们各自的方法不一样,下面我们就来详细介绍一下。 1.this.Close 阅读全文
posted @ 2017-02-22 17:03 寒夜美美 阅读(5252) 评论(0) 推荐(0) 编辑
摘要: 一、获取当前文件的路径 1. System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName 获取模块的完整路径,包括文件名。2. System.Environment.CurrentDirectory 获取和设置当前目录(该进程 阅读全文
posted @ 2017-02-14 16:02 寒夜美美 阅读(7038) 评论(0) 推荐(0) 编辑
摘要: //获取到bin目录的下层路径:bin\Debug\ string aa = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase; string cc = System.AppDomain.CurrentDomain.Bas 阅读全文
posted @ 2017-02-14 16:01 寒夜美美 阅读(300) 评论(0) 推荐(0) 编辑
摘要: .Net2.0中新增了很多组件,WebClient就是其中一个,功能也很强大,今天拿WebClient做了一个小实验,只用到了一些很简单的功能就可以实现以前不好实现的功能,很方便。 简单介绍一下WebClient: WebClient 类提供向 URI 标识的任何本地、Intranet 或 Inte 阅读全文
posted @ 2017-02-14 15:58 寒夜美美 阅读(445) 评论(0) 推荐(0) 编辑
摘要: WebClient client = new WebClient(); 第一种 string URLAddress = @"http://files.cnblogs.com/x4646/tree.zip"; string receivePath=@"C:\"; client.DownloadFile 阅读全文
posted @ 2017-02-14 15:56 寒夜美美 阅读(4819) 评论(0) 推荐(0) 编辑
摘要: 简介:ZedGraph 是一个开源的.NET图表类库, 全部代码都是用C#开发的。它可以利用任意的数据集合创建2D的线性和柱形图表。 属性名称 属性值、作用 MasterPane 一个类对象管理多个GraphPane来源于PaneBase。使用MasterPane类都是可选的,GraphPane类可 阅读全文
posted @ 2017-02-06 11:25 寒夜美美 阅读(2275) 评论(0) 推荐(0) 编辑
摘要: VS2010项目的部署与安装winform程序,我想进行安装。1、在解决方案中 ——点击右键——添加 2、然后选择 安装和部署 ——安装向导 可以更改名称 3、点击 下一步 4、然后选择上那3个 5、点击完成之后 会出现如下界面 6、点击应用程序文件夹 选择主输出 ——右键 创建快捷方式 7、创建完 阅读全文
posted @ 2017-02-05 17:12 寒夜美美 阅读(1675) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 29 下一页