摘要: C#显示PDF文件,winform打开PDF文件并在窗体中显示1.在工具箱中添加Adobe提供的ActiveX控件,如图所示: 选择com组件,我用的是7.0版本 打勾点确定,在控件工具栏就有了,见下图: 拖一个Adobe PDF Reader控件到窗体上,双击窗体,在窗体加载时,弹出对话框,加载PDF文件:string fileName = MyOpenFileDialog();axAcroPD... 阅读全文
posted @ 2010-08-13 15:43 努力实现目标 阅读(35994) 评论(6) 推荐(1) 编辑
摘要: 重新排列panel中的按钮,如图排列前:排列后:代码:void ArrangeButtons(Panel pn) {int x = 0, y = 0; System.Windows.Forms.Control.ControlCollection ct = pn.Controls;//for (int i = 0; i < ct.Count; i++)for (int i = ct.Count... 阅读全文
posted @ 2010-08-13 15:28 努力实现目标 阅读(1948) 评论(0) 推荐(0) 编辑
摘要: 包含自定义绘制的ListBox, 带拖动,图片显示, 内嵌其它控件, 打印等扩展功能的ListView(文章及相关代码搜集自网络,仅供学习参考,版权属于原作者! ).1.ColorListBox ColorListBox.zip 2.RadioListBox RadioListBox.rar3.扩展CheckedListBox控件 ExCheckedListBox.rar 每项可以显示多行文本的... 阅读全文
posted @ 2010-08-13 15:26 努力实现目标 阅读(745) 评论(1) 推荐(1) 编辑
摘要: #region 改变窗口样式 #if !DEBUG [DllImport ("User32.dll")] private static extern IntPtr GetWindowDC(IntPtr hwnd); [DllImport ("User32.dll")] private static extern int ReleaseDC(IntPtr hwnd, IntPtr hdc); pro... 阅读全文
posted @ 2010-08-13 15:25 努力实现目标 阅读(9874) 评论(2) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.Drawing; using System.Drawing.Drawing2D; namespace RoundPanel { class RoundPanel : Panel {... 阅读全文
posted @ 2010-08-13 15:24 努力实现目标 阅读(12810) 评论(0) 推荐(0) 编辑