摘要: teechart在注册表的跟目录为HKEY_CLASSES_ROOT\CLSID,以下的子目录会根据版本的不同发生改变,但是最底级的目录是TypeLib(例如[HKEY_CLASSES_ROOT\CLSID\{32282C17-C58C-4df7-9A31-999B492F74FB}\Typ... 阅读全文
posted @ 2013-08-15 10:24 teyond 阅读(713) 评论(1) 推荐(0) 编辑
摘要: //注册非根目录下在文件 [DllImport(@"ffdshow\ffdshow.ax")] private static extern void DllRegisterServer(); DllRegisterServer(); //导入注册表 if (File.Exists(@"ffdshow\register.reg")) { Process.Start("regedit", string.Format(" /s {0}", @"ffdshow\register.reg")); } // 阅读全文
posted @ 2012-06-19 11:40 teyond 阅读(921) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication1{ public partial class DrawLine : UserControl { public delegate void DrawChangeDataDelega. 阅读全文
posted @ 2012-06-09 12:42 teyond 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 设置this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;即可 阅读全文
posted @ 2012-06-09 12:39 teyond 阅读(253) 评论(0) 推荐(0) 编辑
摘要: //获取系统音量 System.Speech.Synthesis.SpeechSynthesizer _S = new System.Speech.Synthesis.SpeechSynthesizer(); MessageBox.Show(_S.Volume.ToString ());//调整音量 Audio.Volume=21; 阅读全文
posted @ 2012-06-08 16:28 teyond 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 处理方法:在解决方案----->右键----->属性----->配置属性----->配置----->在对应项目后面“生成”中选中----->OK即可。 阅读全文
posted @ 2012-05-30 09:58 teyond 阅读(2030) 评论(0) 推荐(0) 编辑
摘要: //frmtitle是一个Label控件ImageConverter ic=new ImageConverter (); this.frmtitle.Image =(Image )ic.ConvertFrom (this.Icon ) ; this.frmtitle.Text = this.Text; 阅读全文
posted @ 2012-05-24 11:25 teyond 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 1.在窗体上拖出ContextMenuBar控件,右键“Add Context Menu”,空间上显示“buttonItem1”,选择“buttonItem1”,右键添加控件;2.修改控件属性;3.选择想要在上面弹出上下文菜单的控件,选择属性,在“conenxtMenuBar1上的ContextMenuEx”项上双击或者点击下拉列表进行选择,不能选择就双击。4.如果有多个右键菜单,选择相对应的菜单。不能选择的时候,需要手动修改。在“InitializeComponent()”中,找到要添加右键菜单的控件,添加代码(eg:this.contextMenuBar1.SetContextMenuEx 阅读全文
posted @ 2012-05-22 10:54 teyond 阅读(3670) 评论(0) 推荐(0) 编辑
摘要: //部分控件不支持背景透明,可以重载该控件,添加以下代码,实现背景透明 SetStyle(ControlStyles.SupportsTransparentBackColor, true); this.BackColor = Color.Transparent; 阅读全文
posted @ 2012-05-09 12:54 teyond 阅读(235) 评论(0) 推荐(0) 编辑
摘要: #region 使用DotNetBar美化界面,添加界面风格选项 /// <summary> /// /// 为了保证在Vista以上环境中能够使用DotNrtaBar皮肤,把窗体的EnableGlass属性设为False; /// /// btnStyle 为DevComponents.DotNetBar.ButtonItem; /// /// DevStyleManager 为DevComponents.DotNetBar.StyleManager; /// /// </summary> protected override void OnLoad(EventArg 阅读全文
posted @ 2012-05-09 09:47 teyond 阅读(2115) 评论(0) 推荐(0) 编辑