- 博客(13)
- 收藏
- 关注
原创 JavaScript与C# Windows应用程序交互(webBrowser方法)
一、建立网页html>head> meta http-equiv="Content-Language" content="zh-cn"> script language="javascript" type="text/javascript"> 提供给C#程序调用的方法 --> function messageB
2007-12-10 12:03:00
2214
原创 只禁止多个进程运行
方法一:只禁止多个进程运行 [STAThread]public static void Main(){ bool ret; System.Threading.Mutex mutex = new System.Threading.Mutex(true, Application.ProductName, out ret); if (ret)
2007-11-14 19:09:00
772
原创 UDP简要介绍
1.UDP简要介绍UDP是传输层协议,和TCP协议处于一个分层中,但是与TCP协议不同,UDP协议并不提供超时重传,出错重传等功能,也就是说其是不可靠的协议。 2.UDP协议头2.1.UDP端口号由于很多软件需要用到UDP协议,所以UDP协议必须通过某个标志用以区分不同的程序所需要的数据包。端口号的功能就在于此,例如某一个UDP程序A在系统中注册了3000端口,那么,以后从外面传进
2007-10-16 12:37:00
795
原创 c#怎样实现复制/粘贴/操作?
查看 Clipboard 类 粘帖: IDataObject iData = Clipboard.GetDataObject(); if (iData.GetDataPresent(DataFormats.Text) ¦ iData.GetDataPresent(DataFormat
2007-10-03 18:20:00
2573
原创 在Form上按A等同Alt+Tab
public class Form1 : Form{ public Form1() { this.SuspendLayout(); // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.
2007-10-03 18:00:00
514
原创 Form2操作FORM1的方法
对像的方法:在Form1中打开Form2,那么你可以把Form1做为参数传到到Form2中如: 在Form2中建一个Public属性FRM1 Form1中把Form1做为参数传到到Form2中Form2 frm2 = new Form2(); frm2.FRM1 = this; Frm2.show();然后面Form2中你就可以写(注意要先把label1设为
2007-10-02 00:37:00
1136
原创 PDU短信解码
public static class PDU { /// /// 函数功能:短信内容编码 /// 函数说明: /// 1,采用Big-Endian 字节顺序的 Unicode 格式编码,也就说把高低位的互换在这里完成了 /// 2,将转换后的短信内容存进字节数组 ///
2007-07-03 02:25:00
3092
1
原创 实时采集并显示录音波形WaveNative.cs
using System;using System.Runtime.InteropServices;using System.Drawing;using System.Text;namespace WaveLib...{ public enum WaveFormats ...{ Pcm = 1, Float = 3 } [StructLayo
2007-04-19 19:07:00
2733
原创 实时采集并显示录音波形WaveIn.cs
using System;using System.Threading;using System.Runtime.InteropServices;namespace WaveLib...{ internal class WaveInHelper ...{ public static void Try(int err) ...{ if
2007-04-19 19:05:00
4024
1
原创 实时采集并显示录音波形miniform.cs
using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Runtime.InteropServices;using System.Text;namespace cswavrec...{ /**
2007-04-19 19:04:00
2913
1
原创 C#中无边框窗体随意移动代码
protected override void WndProc(ref Message m) { const int WM_NCHITTEST = 0x84; const int HTCLIENT = 0x01; const int HTCAPTION = 0x02; if (
2007-03-03 21:47:00
1268
1
原创 使用委托
使用委托:第一种例程:主线程:第一步:定义委托delegateprivate delegate void setConn(string strConn);private setConn mySetConn = null;第二步:定义一个方法private void DispText(string strConn){ textBox1.Text = strConn;}第三步:初始化委托my
2007-02-25 13:07:00
551
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人