(转)一个可拖动图片的控件
    
            
摘要:原文:http://topic.csdn.net/u/20081222/23/2e9ee5ea-0aef-4153-b2fc-c329cc2761f6.html 从Panel继承来,增加Image属性,运行后可以用鼠标拖动图片。。 另外,由于父类是Panel,所以可以容纳其他控件,比如Label,你可以把一个Label拖放到这个DragPictureBox里然后设置背景色为 Transpar...
        
阅读全文
                posted @ 
2008-12-27 20:32 
冷月孤峰
        
阅读(353) 
         
        推荐(0)     
             
            
            
    (转)判断计算机是否有网络链接
    
            
摘要:原文:http://topic.csdn.net/u/20081223/00/27301898-6c7c-4e4a-a70d-d4ac7f00886b.html Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> //先通过.Net提...
        
阅读全文
                posted @ 
2008-12-23 16:48 
冷月孤峰
        
阅读(168) 
         
        推荐(0)     
             
            
            
    (转) C#实现combobox多选
    
            
摘要:原文:http://dev.csdn.net/article/39/39207.shtm 下面是我写的一个扩展combobox控件的例子 using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Data; using System.Windo...
        
阅读全文
                posted @ 
2008-12-23 16:30 
冷月孤峰
        
阅读(2165) 
         
        推荐(0)     
             
            
            
    (转)C#判断是否是图形文件的几种方法
    
            
摘要:原文:http://pzs8417.spaces.live.com/blog/cns!fb62b5025d35dbff!293.entry 1〉通过文件的扩展名来判断。这种方法比较简单,但若是有人故意改下文件扩展名,这种方法就不起作用了。 2〉通过C#自身提供的方法来进行判断(判断某种确定的图片类型)。 EX: bool isJPG = false; Syste...
        
阅读全文
                posted @ 
2008-12-14 19:25 
冷月孤峰
        
阅读(652) 
         
        推荐(0)     
             
            
            
    (转)C#下拖动没有边框的窗体
    
            
摘要:原文:http://topic.csdn.net/t/20020425/15/675744.html 方法一: Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->using System; using System...
        
阅读全文
                posted @ 
2008-12-11 17:16 
冷月孤峰
        
阅读(357) 
         
        推荐(0)     
             
            
            
    (转)C# WinForm通过WebClient实现文件上传下载 (附源码)
    
            
摘要:原文:http://hi.baidu.com/wzlv/blog/item/7ff57f90b12bbe89a877a446.html C# WinForm 文件上传下载 (附源码) Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ ...
        
阅读全文
                posted @ 
2008-12-11 11:04 
冷月孤峰
        
阅读(3274) 
         
        推荐(1)     
             
            
            
    (转)Windows Media Player控件研究
    
            
摘要:原文:http://tianmoboping.blog.163.com/blog/static/157395322008777734304/ 初级问题: 我的那个定时提醒程序中要用到它,初步使用问题已解决。基本使用步骤如下: 一、往控件箱中添加此控件:wmp.dll 二、往窗体上拖控件 三、wmp.URL=XXXX;wmp.play()即可。 平常应用就这三步就OK了。但是,我想写个播放器的话,就...
        
阅读全文
                posted @ 
2008-12-04 09:57 
冷月孤峰
        
阅读(656) 
         
        推荐(0)     
             
            
            
    (转)ComboBox设置ToolTip功能
    
            
摘要:原文:http://topic.csdn.net/u/20070911/11/c3f63685-f549-47b4-a903-ac24c7d2e918.html 功能: 在点开ComboBox下拉筐的的时候,鼠标移动到每一个选项时显示相对应的ToolTip Code Code highlighting produced by Actipro CodeHighlighter (freeware...
        
阅读全文
                posted @ 
2008-12-03 09:12 
冷月孤峰
        
阅读(815) 
         
        推荐(0)     
             
            
            
    (转)通过鼠标移动.NET Winform窗体中的控件
    
            
摘要:在Winform窗体中通过鼠标拖动,改变控件的位置。在拖动过程中,跟随鼠标显示一个与被拖动控件大小一样的黑框,用以模拟拖动效果。如下图: 以下是源代码。这里拖动了一个Button控件。如果需要,还可以在拖动时改变光标。 using System; using System.Collections.Generic; using System.ComponentModel...
        
阅读全文
                posted @ 
2008-12-01 22:51 
冷月孤峰
        
阅读(1181) 
         
        推荐(0)     
             
            
            
    (转)c#模态进度条 from csdn
    
            
摘要:最近看了好多人问这方面的问题,以前我也写过一篇blog,里面说了如何在子线程中控制进度条。但目前大多数环境,需要弹出模式窗口,来显示进度条,那么只需要在原先的基础上稍作修改即可。 首先是进度条窗体,需要在上面添加进度条,然后去掉ControlBox。除此外,还要增加一个方法,用来控制进度条的增加幅度,具体如下: /// /// Increase process bar ...
        
阅读全文
                posted @ 
2008-11-29 10:49 
冷月孤峰
        
阅读(952) 
         
        推荐(0)     
             
            
            
    c#获取网页的HTML源码
    
            
摘要:原文:http://topic.csdn.net/u/20081125/21/b05ebc85-3591-4d65-8602-66af58ef825f.html?seed=812988667 using System.Net ; using System.IO ; Code Code highlighting produced by Actipro CodeHighlighter (free...
        
阅读全文
                posted @ 
2008-11-26 19:10 
冷月孤峰
        
阅读(680) 
         
        推荐(0)     
             
            
            
    tabControl控件自定义样式
    
            
摘要:原文: http://topic.csdn.net/u/20081110/14/3b61faf8-ece1-469a-8da5-2b7c515f040d.html using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing;...
        
阅读全文
                posted @ 
2008-11-12 15:03 
冷月孤峰
        
阅读(3061) 
         
        推荐(0)     
             
            
            
    让C#程序自动启动
    
            
摘要:原文地址: http://zhidao.baidu.com/question/67758997.html 可以使用注册表,给你注册表关于程序自启动的一些技术参考。 Load注册键 它也能够自动启动程序 位置:HKEY_CURRENT_USER"Software"Microsoft"WindowsNT"CurrentVersion"Windows"load。 Userinit...
        
阅读全文
                posted @ 
2008-11-11 11:09 
冷月孤峰
        
阅读(1306) 
         
        推荐(0)     
             
            
            
    (转)C# 制作以动画的方式显示图像(二)
    
            
摘要:七. 以左右反转的方式显示图像 原理: 计算图像位置和高度后以宽度的一半为轴进行对换左右半边的图像." 代码: Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->private void button1_Click(ob...
        
阅读全文
                posted @ 
2008-10-31 09:58 
冷月孤峰
        
阅读(310) 
         
        推荐(0)     
             
            
            
    (转)C# 制作以动画的方式显示图像(一)
    
            
摘要:逛CSDN时发现的,由于对图像操作很不熟悉,留作备用学习: http://topic.csdn.net/u/20081031/08/197ba3bf-7177-4f14-ba16-59d09d7334d8.html 十一将至, 放假前将GDI+最后一部分今天终于完成: 以动画的方式显示图像。希望对 GDI+编程的园友有所帮助。 PPT 以动画方式显示幻灯片是其一个很重要的特点,相信里边一定...
        
阅读全文
                posted @ 
2008-10-31 09:49 
冷月孤峰
        
阅读(292) 
         
        推荐(0)     
             
            
            
    C#给系统添加账户
    
            
摘要:net user aa aa /add /fullname:"Name" /comment:"Text" 指定用户的全名而不是用户名。给该名称加上引号。 /comment:"Text" 提供关于用户帐户的描述性注释。该注释可以包含多达 48 个字符。给文本加上引号。 /fullname:"Name" 指定用户的全名而不是用户名。给该名称加上引号。 添...
        
阅读全文
                posted @ 
2008-10-27 15:37 
冷月孤峰
        
阅读(327) 
         
        推荐(0)     
             
            
            
    (转)基于C#的Escape和Unescape实现
    
            
摘要:public static string Escape(string str) { if (str == null) return String.Empty; StringBuilder sb = new StringBuilder(); int len = str.Length; for ...
        
阅读全文
                posted @ 
2008-10-17 17:07 
冷月孤峰
        
阅读(818) 
         
        推荐(0)     
             
            
            
    简繁体转换—用.net自带的类实现
    
            
摘要:在CSDN上发现的: http://topic.csdn.net/u/20081006/13/67eacb9c-99cc-4060-a44c-d678825facbc.html?seed=768071163 Very简单的方法就能搞定: using Microsoft.VisualBasic; string txt = "發現什麽" txt = Microsoft.VisualBasic.S...
        
阅读全文
                posted @ 
2008-10-06 17:07 
冷月孤峰
        
阅读(186) 
         
        推荐(0)     
             
            
            
    (转)金山词霸屏幕取词C#应用(XdictGrb.dll)
    
            
摘要:原帖地址:http://hi.baidu.com/ykhykh/blog/item/8ebecb119214f112b9127ba5.html 屏幕取词窗口在前端显示才能正确屏幕取词哦 窗体总在前端显示 1、命名空间using System.Runtime.InteropServices; 2、函数 /// /// 窗体总在前端显示(小荷扬扬原创) ...
        
阅读全文
                posted @ 
2008-10-06 15:29 
冷月孤峰
        
阅读(3999) 
         
        推荐(0)     
             
            
            
    开机自动运行的方法
    
            
摘要:using Microsoft.Win32;//Registry的引用空间. private void FrmTiming_Load(object sender, EventArgs e) { AutoRun(); } /// /// windows启动时,自动运行 /// private void AutoRun() { try { string pa...
        
阅读全文
                posted @ 
2008-08-23 18:00 
冷月孤峰
        
阅读(235) 
         
        推荐(0)