码迷,mamicode.com
首页 > Windows程序
C# 哈希表(Hashtable)
Hashtable类代表了一系列基于键的哈希代码组织起来的key/value对。他使用键来访问集合中的元素。 using System; using System.Collections; namespace CollectionsApplication { class Program { static void Main(string[] args) ...
分类:Windows程序   时间:2015-05-06 23:04:27    阅读次数:264
C# 堆栈(Stack)
堆栈(Stack)代表了一个后进先出的对象集合。 using System; using System.Collections; namespace CollectionsApplication { class Program { static void Main(string[] args) { Stack st =...
分类:Windows程序   时间:2015-05-06 23:03:44    阅读次数:254
C# 队列(Queue)
队列(Queue)代表了一个先进先出的对象集合。 using System; using System.Collections; namespace CollectionsApplication { class Program { static void Main(string[] args) { Queue q = ...
分类:Windows程序   时间:2015-05-06 23:02:02    阅读次数:408
一个很吊的swing循环生成窗口。
import javax.swing.*;import java.awt.event.ActionListener;import java.awt.event.ActionEvent; public class popupWindows{ JFrame mainWindow; publi...
分类:Windows程序   时间:2015-05-06 22:51:53    阅读次数:197
github for windows 简单的客户端托管代码
1)创建github账户登录https://github.com,只需用户名、注册邮箱和登录密码便能注册一个属于自己的github(之后需要到注册邮箱中进行确认,非常喜欢这种注册方式,简单而且安全)。之后便能通过github.com/用户名 的URL进行访问。2)安装github windows客户...
分类:Windows程序   时间:2015-05-06 22:49:45    阅读次数:218
C#.NET中使用BackgroundWorker在模态对话框中显示进度条
这里是一个示例,其中展示了如何使用Backgroundworker对象在模态对话框中显示后台操作的实时进度条。 首先是主窗体代码:using System;using System.Collections.Generic;using System.ComponentModel;using Syst....
分类:Windows程序   时间:2015-05-06 22:36:16    阅读次数:172
感受C#6.0新语法
作为一门专为程(yu)序(fa)员(tang)考虑的语言,感受一下来自微软的满满的恶意...1. 字符串内联在之前的版本中,常用的格式化字符串:var s = String.Format("{0} is {1} year{{s}} old", p.Name, p.Age);在 C# 6 中://无格...
分类:Windows程序   时间:2015-05-06 22:34:02    阅读次数:273
Delphi7 调用 Windows 控制面板
Delphi7 调用IE 浏览器选项.uses ShellAPI;begin ShellExecute(Handle, 'open', 'control.exe', 'INETCPL.CPL', Nil, SW_SHOWNORMAL);end;
分类:Windows程序   时间:2015-05-06 22:34:41    阅读次数:180
Drawing Images and Text
using System;using UIKit;using Foundation;using CoreGraphics;namespace GraphicsAnimation{ public class DrawnImageView : UIView { public DrawnImageVie....
分类:Windows程序   时间:2015-05-06 22:33:43    阅读次数:206
Socket的双网卡收发(C#)
最近的一个项目中需要同时使用两块网卡收发UDP组播数据包,并且要求使用Socket的方式接收和发送网络数据包(我不会告诉你们我之前是直接使用SharpPcap来实现的)。在C#中Socket接触的比较早,但是用的不多,特别是在实现本次上网卡的收发过程中也是遇到了不少麻烦。其中最最头疼的就是不能同时接...
分类:Windows程序   时间:2015-05-06 22:32:38    阅读次数:218
C#中结构的使用
1 //声明结构 结构与枚举区别,一个不用声明类型,一个要声明类型 2 public struct Person 3 { 4 //这里叫字段,做用也是存储内容,变量只可以存一个值,字段可以存多个值 5 ...
分类:Windows程序   时间:2015-05-06 22:22:22    阅读次数:150
甘特图C#实现
1.新建用户控件;解决方案=》项目右键单击=》新建用户控件,把下面的代码拷贝进去/// /// 甘特图控件 /// public class ProjectViewBox : DevExpress.XtraEditors.XtraUserControl { ...
分类:Windows程序   时间:2015-05-06 21:14:16    阅读次数:184
windows server 2012安装.net framework3.5失败解决方法
1.点击开始运行,输入 gpedit.msc,打开“组策略”2.“计算机配置”---“管理模板”---“windows 组件”---“windows 更新”,然后双击“指定 Intranet Microsoft 更新服务位置”选择为“未配置”3.再输入命令:gpupdate /force
分类:Windows程序   时间:2015-05-06 21:06:07    阅读次数:454
[学习记录] QT 窗体控件的透明度设置
QT中窗体,控件及需要的部分进行透明化。...
分类:Windows程序   时间:2015-05-06 19:47:11    阅读次数:1261
C# 结合html5 批量上传文件和图片预览
html5 新特性    input  file 中增加 multiple   属性可以选择多文件。IE9以下版本不兼容                                       //预览js                            $("#imgsf").change(function ...
分类:Windows程序   时间:2015-05-06 19:48:52    阅读次数:232
C# 可以利用反射给只读属性赋值吗?
结论:可以 验证demo如下: 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...
分类:Windows程序   时间:2015-05-06 19:45:37    阅读次数:255
windows xp下使用TDI+NDIS实现进程网络流量限速(设计文档)
在windows xp下实现进程网络流量限速...
分类:Windows程序   时间:2015-05-06 19:46:55    阅读次数:342
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!