会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
teyond
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
下一页
2013年8月15日
teeChart 修改注册表实现无试用到期提示
摘要: teechart在注册表的跟目录为HKEY_CLASSES_ROOT\CLSID,以下的子目录会根据版本的不同发生改变,但是最底级的目录是TypeLib(例如[HKEY_CLASSES_ROOT\CLSID\{32282C17-C58C-4df7-9A31-999B492F74FB}\Typ...
阅读全文
posted @ 2013-08-15 10:24 teyond
阅读(825)
评论(1)
推荐(0)
2012年6月19日
导入注册表文件,注册dll
摘要: //注册非根目录下在文件 [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
阅读(962)
评论(0)
推荐(0)
2012年6月9日
双缓冲画线示例
摘要: 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
阅读(205)
评论(0)
推荐(0)
设置ComboBox的只能选择属性
摘要: 设置this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;即可
阅读全文
posted @ 2012-06-09 12:39 teyond
阅读(262)
评论(0)
推荐(0)
2012年6月8日
设置播放器声音
摘要: //获取系统音量 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
阅读(275)
评论(0)
推荐(0)
2012年5月30日
由于缺少调试目标"……",Visual Studio无法开始调试。请生成项目并重试……
摘要: 处理方法:在解决方案----->右键----->属性----->配置属性----->配置----->在对应项目后面“生成”中选中----->OK即可。
阅读全文
posted @ 2012-05-30 09:58 teyond
阅读(2369)
评论(0)
推荐(0)
2012年5月24日
使用ImageConverter转换图标
摘要: //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
阅读(373)
评论(0)
推荐(0)
2012年5月22日
使用DotNetBar中的ContextMenuBar实现鼠标右键上下文菜单
摘要: 1.在窗体上拖出ContextMenuBar控件,右键“Add Context Menu”,空间上显示“buttonItem1”,选择“buttonItem1”,右键添加控件;2.修改控件属性;3.选择想要在上面弹出上下文菜单的控件,选择属性,在“conenxtMenuBar1上的ContextMenuEx”项上双击或者点击下拉列表进行选择,不能选择就双击。4.如果有多个右键菜单,选择相对应的菜单。不能选择的时候,需要手动修改。在“InitializeComponent()”中,找到要添加右键菜单的控件,添加代码(eg:this.contextMenuBar1.SetContextMenuEx
阅读全文
posted @ 2012-05-22 10:54 teyond
阅读(3754)
评论(0)
推荐(0)
2012年5月9日
给控件添加背景透明
摘要: //部分控件不支持背景透明,可以重载该控件,添加以下代码,实现背景透明 SetStyle(ControlStyles.SupportsTransparentBackColor, true); this.BackColor = Color.Transparent;
阅读全文
posted @ 2012-05-09 12:54 teyond
阅读(247)
评论(0)
推荐(0)
使用DotNetBar美化界面,添加风格选项到界面
摘要: #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
阅读(2155)
评论(0)
推荐(0)
上一页
1
2
3
下一页