-
C# ip控件 完整源码下载
自己改良的IP控件,直接调用就可以,vs2010编写的 备注说明: 1.vs新建windos窗体控件库,设计控件样式,编写空间代码。生成。在bin文件夹底下找到.dll文件拷到要用的项目中,然后在项目中工具箱内右键点击选择项,找到.dll添加。2.在工具箱内可以找到自己设计的控件,进行使用。(齿轮形状)
- 2014-05-22下载
- 积分:1
-
c# 异步批量发送邮件
c# 异步批量发送邮件
- 2015-06-20下载
- 积分:1
-
winds服务实例,发送邮件且禁用违法规则的用户权限
C#编写的winds服务,针对超出规则的用户发送提醒,如果提醒后三个工作日中没进行处理则禁用用户权限
- 2015-01-17下载
- 积分:1
-
C#中调用VC++的DLL
[DllImport("diaCallBackDll.dll")] public static extern void show(); [DllImport("diaCallBackDll.dll", CallingConvention = CallingConvention.StdCall)] public static extern int add_CallBack_test(int a, int b, cb_func f); public static void cb_funcc(int re) { Console.WriteLine("result=[{0}]", re); return; } static void Main(string[] args) { //show(); int i = add_CallBack_test(7, 2, cb_funcc); Console.Read(); }
- 2015-01-05下载
- 积分:1
-
c#文件读写示例代码下载
c#文件读写示例代码下载
- 2015-04-23下载
- 积分:1
-
c#FORM服务器客户端UDP通讯实例
服务器客户端UDP广播通话 【核心代码】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.Net.Sockets;using System.Net;namespace NetServer{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button2_Click(object sender, EventArgs e) { this.Close(); } private void Form1_Load(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { //使用UDP协议发送数据 Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); //设置端口号 IPEndPoint ieps = new IPEndPoint(IPAddress.Broadcast, 8900); socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, 1); //将发送数据转换为字节数组 byte[] bytess = System.Text.Encoding.Unicode.GetBytes(textBox1.Text); socket.SendTo(bytess, ieps); socket.Close(); } }}
- 2020-05-31下载
- 积分:1
-
C# 单机网络监听 实例源码
可实现本机TCP or udp网络监听
- 2014-11-17下载
- 积分:1
-
C# 实现 MD5加密解密算法
using System.Security.Cryptography;using System.IO; using System.Text; ///MD5加密 public string MD5Encrypt(string pToEncrypt, string sKey) { DESCryptoServiceProvider des = new DESCryptoServiceProvider(); byte[] inputByteArray = Encoding.Default.GetBytes(pToEncrypt); des.Key = ASCIIEncoding.ASCII.GetBytes(sKey); des.IV = ASCIIEncoding.ASCII.GetBytes(sKey); MemoryStream ms = new MemoryStream(); CryptoStream cs = new CryptoStream(ms, des.CreateEncryptor(),CryptoStreamMode.Write); cs.Write(inputByteArray, 0, inputByteArray.Length); cs.FlushFinalBlock(); StringBuilder ret = new StringBuilder(); foreach(byte b in ms.ToArray()) { ret.AppendFormat("{0:X2}", b); } ret.ToString(); return ret.ToString(); } ///MD5解密 public string MD5Decrypt(string pToDecrypt, string sKey) { DESCryptoServiceProvider des = new DESCryptoServiceProvider(); byte[] inputByteArray = new byte[pToDecrypt.Length / 2]; for(int x = 0; x < pToDecrypt.Length / 2; x ) { int i = (Convert.ToInt32(pToDecrypt.Substring(x * 2, 2), 16)); inputByteArray[x] = (byte)i; } des.Key = ASCIIEncoding.ASCII.GetBytes(sKey); des.IV = ASCIIEncoding.ASCII.GetBytes(sKey); MemoryStream ms = new MemoryStream(); CryptoStream cs = new CryptoStream(ms, des.CreateDecryptor(),CryptoStreamMode.Write); cs.Write(inputByteArray, 0, inputByteArray.Length); cs.FlushFinalBlock(); StringBuilder ret = new StringBuilder(); return System.Text.Encoding.Default.GetString(ms.ToArray()); }
- 2013-11-13下载
- 积分:1
-
c# 簡易電子琴 源码
c# 簡易電子琴 源码
- 2017-08-30下载
- 积分:1
-
keil配色方案
【实例简介】
- 2021-08-15 00:31:04下载
- 积分:1