- 博客(5)
- 资源 (3)
- 收藏
- 关注
转载 C# char 和string之间转换
char数组要转换成string可没想象的那么容易。需要使用到System.Text.StringBuilder!实例如下:char[] temp={a,b,c};System.Text.StringBuilder sb = new System.Text.StringBuilder();sb.Append(temp);string target=sb.ToString();反过来就比较容
2009-08-29 00:42:00 18292 1
原创 砍头砍尾
char a[];char b=);int i=0;while(strTemp[i]!=b) { i++; }for(;i {a[i+1]=strTemp[i+1];}
2009-08-29 00:40:00 646
原创 winform中的enter和esc按键监控
当前textbox1按回车到textbox2中去,按esc退出当前窗口public partial class Form1 : Form { public Form1() { InitializeComponent(); textBox1.TabIndex = 1; t
2009-08-27 11:39:00 5219
原创 form2到form7的数据单向传输
form2的botton写法: private void read_Click(object sender, EventArgs e) { Form7 formChild = new Form7(this.textBox1Frm2.Text,this.textBox2Frm2.Text,this.textBox3Frm2.Text,this.textB
2009-08-25 16:11:00 583
原创 今天开始写c#
PT-60的dll无法在C#里面引用只能使用DllImport了 添加using System.Runtime.InteropServices; 然后在class里面添加[DllImport("scanapiax.dll", EntryPoint = "PT_EnableScanner")]public static extern int PT_EnableScanner(
2009-08-22 13:03:00 1020 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人