码迷,mamicode.com
首页 > Windows程序
c#和UDP SOCKET广播
server:Socket sock=newSocket(AddressFamily.InterNetwork,SocketType.Dgram,ProtocolType.Udp);//255.255.255.255IPEndPoint iep1=newIPEndPoint(IPAddress.Br...
分类:Windows程序   时间:2014-10-28 19:27:56    阅读次数:273
mount挂载windows共享文件夹
今天在centos7下挂载windows共享文件夹遇到报错mounterror(115):OperationnowinprogressRefertothemount.cifs(8)manualpage(e.g.manmount.cifs)折腾了半天才去看了一眼日志messages内Oct2803:17:59localhostkernel:CIFSVFS:Errorconnectingtosocket.Abortingoperation.Oct2803:..
分类:Windows程序   时间:2014-10-28 18:10:48    阅读次数:3299
Windows Server 2012文件服务器资源管理器(FSRM)(2)---文件屏蔽
上篇文章介绍了FSRM的文件分类功能,这次介绍FSRM的另外一个重要功能文件屏蔽。文件屏蔽管理允许你阻止用户将特定的类型的文件存放在卷或者文件夹树中。文件屏蔽会应用到指定路径中的所有文件夹。文件屏蔽管理通过文件组去控制文件类型,例如你可以创建一个文件屏蔽规则去阻止..
分类:Windows程序   时间:2014-10-28 18:09:30    阅读次数:483
.Net C# Windows Service在服务器无法启动,错误 193:0xc1
.Net C# Windows Service在服务器无法启动,错误 193:0xc1...
分类:Windows程序   时间:2014-10-28 18:00:47    阅读次数:341
C# - ref
The ref keyword causes an argument to be passed by reference, not by value. The effect of passing by reference is that any change to the parameter in the called method is reflected in the calling me...
分类:Windows程序   时间:2014-10-28 17:58:56    阅读次数:268
C# - Passing Reference-Type Parameters
?? A variable of a reference type does not contain its data directly; it contains a reference to its data. When you pass a reference-type parameter by value, it is possible to change the data poin...
分类:Windows程序   时间:2014-10-28 17:55:49    阅读次数:227
为 ASP.NET Web API 创建帮助页面(转载)
转载地址:http://www.asp.net/web-api/overview/creating-web-apis/creating-api-help-pages当创建web API 时,经常要创建一个帮助页,以便其他开发人员知道如何调用您的 API。您可以手动创建的所有文档,但最好是尽可能多地自...
分类:Windows程序   时间:2014-10-28 17:45:39    阅读次数:284
C#泛型List的用法
一、List命名空间:System.Collections.Generic(程序集:mscorlib)二、List描述: 1)、表示可通过索引访问的对象的强类型列表;提供用于对列表进行搜索、排序和操作的方法。 2)、是ArrayList类的泛型等效类。 3)、可以使用一个整数索引访问此集合中的元素;...
分类:Windows程序   时间:2014-10-28 17:40:23    阅读次数:255
windows窗体控件之listview列表视图
1.添加标题winform.listview.gridLines=true;//显示列表线,也可在属性表设置winform.listview.insertColumn("列标题",列宽,位置,样式)winform.listview.insertColumn("标题2",列宽,位置,样式)//后加的在...
分类:Windows程序   时间:2014-10-28 17:38:57    阅读次数:1065
C#开发Windows Services服务--服务安装失败的解决办法
问题1:“System.Security.SecurityException:未找到源,但未能搜索某些或全部事件日志。不可访问的日志: Security。”正在运行事务处理安装。正在开始安装的“安装”阶段。查看日志文件的内容以获得…\bin\Debug\Service2.exe程序集的进度。该文件位...
分类:Windows程序   时间:2014-10-28 17:32:01    阅读次数:337
C# 自定义集合
自定义类型 public class Product { public int Id { get; set; } // 自增ID public string Name { get; set; } // 名称 public s...
分类:Windows程序   时间:2014-10-28 17:24:18    阅读次数:287
FineUI Grid中WindowField根据列数据决定是否Enalble
前台页面Grid控件中设置OnPreRowDataBound属性,windowFile控件设置ID protected void Grid1_PreRowDataBound(object sender, FineUI.GridPreRowEventArgs e) { Inspectio...
分类:Windows程序   时间:2014-10-28 17:20:29    阅读次数:292
Windows phone 在自定义用户控件(UserControl)——ColorPicker
编码前 学习Windows phone自定义用户控件,在《WPF编程宝典》学习的小例子。并根据windows phone稍微的不同,做了点修改。ColorPicker(颜色拾取器):拥有三个Slider代表颜色中的RGB的值,可以进行调节各自的值。还有一个显示颜色的区域,它的值可以设置,也可以随着三...
分类:Windows程序   时间:2014-10-28 17:11:14    阅读次数:424
WPF 中模拟键盘和鼠标操作
转载:http://www.cnblogs.com/sixty/archive/2009/08/09/1542210.html 更多经典文章:http://www.qqpjzb.cn/65015.html其实SendKeys类提供的方法蛮好用的,可惜的是WPF中不能用了,说是WPF的消息循环方式改成...
分类:Windows程序   时间:2014-10-28 17:11:06    阅读次数:207
C# 通过反射类动态调用DLL方法
网上看了很多关于反射的思路和方法,发现这个还算不错//使用反射方:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;namespace C...
分类:Windows程序   时间:2014-10-28 17:11:18    阅读次数:236
C#产生随机数
C#产生随机数1 // Random为随机数生成器2 Random r = new Random();3 // 返回介于最小值和最大值之间的随机整数4 int val = r.Next(1000, 10000);5 // 返回介于0.0至1.0之间的随机浮点数6 double dVal = r.Ne...
分类:Windows程序   时间:2014-10-28 17:04:16    阅读次数:269
DLL Dynamic-Link Library Search Order -- Window
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).aspxA system can contain multiple versions of the same dynamic-link library ...
分类:Windows程序   时间:2014-10-28 17:03:48    阅读次数:385
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!