求助:有没有c#2.0写的C/S结构的代码?想研究一下啊!
求助:有没有c#2.0写的C/S结构的代码?想研究一下啊!
或者是能提供下载的网站也行啊!
最近准备c/s结构的东西啊!
谢了,各位老大!
------解决方案--------------------刚写了一个:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
public class Form1 : Form
{
private PictureBox bigPicture;
private PictureBox tn1;
private PictureBox tn2;
private PictureBox tn3;
private Button btnClear;
public Form1()
{
bigPicture = new PictureBox();
tn1 = new PictureBox();
tn2 = new PictureBox();
tn3 = new PictureBox();
btnClear = new Button();
bigPicture.Location = new Point(90, 30);
bigPicture.Name = "bigPicture ";
bigPicture.Size = new Size(160, 160);
this.Controls.Add(bigPicture);
tn1.BorderStyle = BorderStyle.FixedSingle;
tn1.Cursor = Cursors.Hand;
tn1.Image = Image.FromFile( "c:\\1.gif ");
tn1.Location = new Point(8, 16);
tn1.Name = "tn1 ";
tn1.Size = new Size(56, 56);
tn1.SizeMode = PictureBoxSizeMode.StretchImage;
this.Controls.Add(tn1);
btnClear.Location = new Point(136, 192);
btnClear.Name = "BtnClear ";
btnClear.Size = new Size(88, 24);
btnClear.Text = "Clear Image ";
this.Controls.Add(btnClear);
btnClear.Click += new EventHandler(btnClear_Click);
tn1.DoubleClick += new EventHandler(ShowPic);
tn2.DoubleClick += new EventHandler(ShowPic);
tn3.DoubleClick += new EventHandler(ShowPic);
}
static void Main()
{
Application.Run(new Form1());
}
private void btnClear_Click(object sender, EventArgs e)
{
bigPicture.Image = null;
}
private void ShowPic(object sender, EventArgs e)
{
bigPicture.Image = ((PictureBox)sender).Image;
}
}
------解决方案--------------------www.cs-open.com
------解决方案--------------------http://www.cnblogs.com/jetxia/archive/2007/03/20/681366.aspx
我使用了SerialPort类
------解决方案--------------------给你发了一个,请查收。TaskVision,Microsoft的示例项目。