c#¶àÏß³ÌˢнçÃæ
Õâ¸öÎÊÌâÒ²²»ÖªµÀÄѵ¹Á˶àÉÙC#ºÀ½Ü¡£±ÈÆðMFCµÄ½çÃæˢУ¬ÔÚWINFORMÖÐÀ´ÊµÏÖ¶àÏß³ÌË¢ÐÂÕæÊǺÜÍ´¿à£¬¹Êд´ËÎÄ¡£
¶àÏß³ÌˢнçÃæÖ÷ÒªÓõ½¶àỊ̈߳¬Î¯ÍУ¬Ḭ̈߳²È«¡¢Ê¼þµÈһϵÁиßÄѶȵÄC#²Ù×÷¡£
¹ØÓÚίÍкÍʼþ£¬ÕâÓÐһƪºÜÒ׶®µÄÎÄÕ£ºhi.baidu.com/anglecloudy/blog/item/a52253ee804d052f2df534ab.html
£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½
ÏÈ´ÓÒ»¸ö¼òµ¥µÄÀý×Ó˵Æð£¬ÊÇÒ»¸öûÓп¼ÂÇḬ̈߳²È«µÄд·¨£º
ÏÈÔÚÒ»¸öFORMÀàÀïÃ涨ÒåÒ»¸öίÍкÍʼþ£º
¡¡¡¡protected delegate void UpdateControlText1(string str);
//¶¨Òå¸üпؼþµÄ·½·¨
protected void updateControlText(string str)
{
this.lbStatus.Text = str ;
return;
}
ÔÚÏ̺߳¯ÊýÀïÃæ¼ÓÉÏÏÂÃæµÄÄÚÈÝ
UpdateControlText1 update = new
UpdateControlText1(updateControlText);//¶¨ÒåίÍÐ
this.Invoke(update,
"OK");//µ÷Óô°ÌåInvoke·½·¨
Õâ¸öÏ̺߳¯Êý±ØÐëÊÇÀàµÄÏ̺߳¯Êý£¬ÕâÑùÓúܷ½±ã£¬µ«ÓкܸߵľÖÏÞÐÔ£¬ÏÂÃæÀ´Ëµ¸ö¸´Ôӵġ£
£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½
Ïȶ¨ÒåÒ»¸ö¶ÀÁ¢µÄÀà
public
class
MoreTime
{
public
delegate
void
InvokeOtherThead(
int
i);//ίÍÐ
public
InvokeOtherThead MainThread;//ʼþ
public
void
WaitMoreTime()
{
for
(
int
i
=
0
; i
<
20
;i
++
)
{
&n
Ïà¹ØÎĵµ£º
protected void btnsearch_ServerClick(object sender, EventArgs e)
{
string lujing=this.Text2.Value.ToString().Trim();
string shujuku = this.jine.Value;
&nbs ......
ÐèÒªÒýÓõÄÀàÃû¿Õ¼ä
using System.Security.Cryptography;
using System.IO;
using System.text;
/// <summary>
/// ¼ÓÃÜ
// ......
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
/// <summary>
/// Data ......
ÒÔÏ²ο¼ :http://msdn.microsoft.com/zh-cn/library/87d83y5b.aspx
½Ó¿Ú£¨C# ²Î¿¼£©
¸üУº2007 Äê 11 ÔÂ
½Ó¿ÚÖ»°üº¬·½·¨¡¢ÊôÐÔ¡¢Ê¼þ»òË÷ÒýÆ÷µÄÇ©Ãû¡£³ÉÔ±µÄʵÏÖÊÇÔÚʵÏÖ½Ó¿ÚµÄÀà»ò½á¹¹ÖÐÍê³ÉµÄ£¬ÈçÏÂÃæµÄʾÀýËùʾ£º
ʾÀý
interface ISampleInterface
{
void SampleMethod();
}
class Implem ......
/// <summary>
/// ±È½ÏÁ½·ùͼƬÊÇ·ñÒ»Ö£¨Ê¹ÓÃMarshal.ReadByte·½Ê½£©
/// </summary>
/// <param name="bitmap1">ͼƬ1</param>
/// <param name="bitmap2">ͼƬ2</param>
/// <returns>Èç¹ûÁ½·ùͼƬÏàͬ£¬·µ»Ø0£»Èç¹ûͼƬ1СÓÚͼƬ2£¬·µ»ØСÓÚ0µÄÖµ£»Èç¹ûͼƬ1´óÓÚÍ¼Æ ......