按类别查询搜索结果
关于关键词 的检测结果,共 385
sinuopalil | 2015-04-16 19:03:58 | 阅读(320) | 评论(0)
除了个别天才程序员外,没有人一开始就能写出让人惊叹的代码,都是从模仿开始的!不要相信你身边的人说他能很轻松的自己编写出让人惊叹的代码而不用任何的参考资料,因为我相信在你我的身边没有这样的天才程序员,所以我们都选择从模仿和阅读源代码开始。就好比一个优秀的作家不是一开始就能写出好的文章,他也是阅读了很多优秀的文章之后才能写出优秀作品的。一开始我想详细的讲解双链表部分,但是我发现由于代码的原因,使得文章的篇幅过大,所以在此就选择一些易错和场用的知识点来进行讲解,如果一开始你发现阅读代码时很吃力,请不要放弃!我们要有毅力去把它消化掉,融会贯通之后再写出我们自己的双链表,当然我给出的仅仅只是一个参考而已。【阅读全文】
icepole | 2015-04-16 09:08:55 | 阅读(2450) | 评论(0)
ComboBox 下拉列表 省市联动【阅读全文】
dyli2000 | 2015-04-03 09:44:51 | 阅读(2410) | 评论(0)
转自博客:http://www.cnblogs.com/xf_z1988/archive/2010/05/11/CSharp_WinForm_Waveform.html值得作参考使用!!【阅读全文】
【C#/.net】 C#Form和Load和Shown
dyli2000 | 2015-03-28 17:17:00 | 阅读(3860) | 评论(0)
C#Form和Load和Shown这两个玩意容易混淆不? 案例测试一下: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace LoadShown {  &#...【阅读全文】
dyli2000 | 2015-03-20 14:29:55 | 阅读(1660) | 评论(0)
WinForm:int iActulaWidth = Screen.PrimaryScreen.Bounds.Width;int iActulaHeight = Screen.PrimaryScreen.Bounds.Height ; WPF下的:double dWidth = System.Windows.SystemParameters.PrimaryScreenWidth;double dHeight = System.Windows.SystemParame...【阅读全文】
dyli2000 | 2015-03-14 17:39:43 | 阅读(0) | 评论(0)
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Diagnostics; using System.Threading; namespace TestDos {   &...【阅读全文】
dyli2000 | 2015-03-13 18:31:30 | 阅读(2980) | 评论(0)
最近在客户机器上出现了无法导出报表的问题,错误提示为: System.InvalidCastException: Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass' to interface type 'Microsoft.Office.Interop.Excel._Application'. This operation failed because the QueryInterface call on the COM ...【阅读全文】
dyli2000 | 2015-03-10 16:47:47 | 阅读(1910) | 评论(0)
定义string变量为str,内存流变量为ms,比特数组为bt1.字符串转比特数组(1)byte[] bt=System.Text.Encoding.Default.GetBytes("字符串");(2)byte[] bt=Convert.FromBase64String("字符串");2.字符串转流(1)MemoryStream ms=new MemoryStream(System.Text.Encoding.Default.GetBytes("字符串"));(2)...【阅读全文】
dyli2000 | 2015-03-09 18:27:08 | 阅读(2740) | 评论(0)
//获得当前窗体标题栏高度MessageBox.Show("当前窗体标题栏高度"+(this.Height - this.ClientRectangle.Height).ToString());ClientRectangle//获取表示控件的工作区的矩形//获取主显示器屏幕的尺寸(像素)MessageBox....【阅读全文】
dyli2000 | 2015-02-26 10:36:23 | 阅读(2340) | 评论(0)
.net自带的有播放.wav格式音频文件的类:System.Media.SoundPlayer,只要调用这个类就可以了。 代码如下:     string path = “....../sound.wav”;//.wav音频文件路径     System.Media.SoundPlayer player = new System.Media.SoundPlayer(path);     player....【阅读全文】
dyli2000 | 2015-02-09 14:51:35 | 阅读(1900) | 评论(0)
主要实现代码如下:using System; using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace AlignForHashtable{    class Program&nb...【阅读全文】
dyli2000 | 2015-01-26 16:23:13 | 阅读(2530) | 评论(0)
注意!label文本的宽高度跟label本身的长度label.width和label.height是不同的。label文本的宽高度的获取方法:Graphics g = tmpLabel.CreateGraphics();SizeF StrSize = g.MeasureString(tmpLabel.Text, tmpLabel.Font);int width = (int)StrSize.Width;int heigh...【阅读全文】
dyli2000 | 2015-01-10 15:45:34 | 阅读(0) | 评论(0)
C# PC端搜索不到UDP数据的可能有下面几个原因: 1、如果PC同时存在有线网卡和无线网卡(如360无线网卡),请将无线网卡插除;2、检查防火墙是否已开启,如果开启,将它关闭。3、检测是还安装virtualbox这样的东西,使网络连接处出现一个虚拟的网卡。如果是,禁掉这个虚拟网卡或者将virtualbox关掉。具体原因本座不细究...【阅读全文】
【C#/.net】 c#之接口
dyli2000 | 2015-01-05 21:10:19 | 阅读(1750) | 评论(0)
来自博客:http://blog.chinaunix.net/blog/post.html本文意在巩固基础知识,并不是对其进行深入剖析,还望理解。本文为原创文,难免会有一些小得瑕疵,敬请谅解。所有示例均是博主测试过的,如有转载请标明出处,谢谢。在编程中,我们经常会用到接口,那什么是接口呢?接口描述的是可属于任何类或结构的一组相...【阅读全文】
【C#/.net】 C#操作数据库
广利颖 | 2014-12-29 11:21:04 | 阅读(1910) | 评论(0)
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace wlw_database{    public partial class Form1 : Form   ...【阅读全文】
杨艳杰 | 2014-12-17 19:28:03 | 阅读(2330) | 评论(0)
点击(此处)折叠或打开using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using Syst...【阅读全文】
Larpenteur | 2014-12-15 09:09:13 | 阅读(1460) | 评论(0)
Java源码转C#源码的五款最佳工具出于某些需要,你可能会遇到把Java源码转换成C#源码的任务。如果是自己一边理解源码,再一边手工翻译,那效率肯定是很低的。有鉴于此,本文推荐了五款最佳的源码转换工具,以解决你的烦恼。工具1#:Java语言转换器助手地址:http://www.microsoft.com/en-us/download/details.as...【阅读全文】
dyli2000 | 2014-12-15 08:58:38 | 阅读(2040) | 评论(0)
Java源码转C#源码的五款最佳工具出于某些需要,你可能会遇到把Java源码转换成C#源码的任务。如果是自己一边理解源码,再一边手工翻译,那效率肯定是很低的。有鉴于此,本文推荐了五款最佳的源码转换工具,以解决你的烦恼。工具1#:Java语言转换器助手地址:http://www.microsoft.com/en-us/download/details.as...【阅读全文】
杨艳杰 | 2014-12-09 21:49:34 | 阅读(2030) | 评论(0)
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;...【阅读全文】
杨艳杰 | 2014-12-09 21:46:50 | 阅读(1710) | 评论(0)
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;...【阅读全文】