Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

C# ListViewµÄÓйØÎÊÌâ¡£ - .NET¼¼Êõ / C#

1.ListViewÖÐÓÐÈô¸É¸öitem£¬²¢ÇÒcheckbox=true£»

2.ÎÒÏëʵÏÖ£ºµ±ÎÒÑ¡ÖÐitemÇ°ÃæµÄcheckboxµÄʱºò£¬Í¬Ê±Ò²ÈøÃitem±»selected£»

3.ÏÖÔÚÎÒÊÇÔÚlistView1_ItemCheckedʼþÖд¦Àí£º
C# code:

if (this.listView1.Items[0].Checked)
{
this.listView1.Items[0].Selected = true;
}
if (this.listView1.Items[1].Checked)
{
this.listView1.Items[1].Selected = true;
}
¡­¡­



ÓÃÉÏÃæµÄ´úÂë³öÏÖµÄÎÊÌâÊÇ£º±ÈÈçitem[4]±¾À´¾ÍÊÇcheckedµÄ£¬È»ºóÎÒÏÖÔÚʹitem[3].checked£¬¿ÉÊDz¢²»»áʹitem[3].selected£»

C# code:

if (this.listView1.Items[0].Checked)
{
this.listView1.Items[0].Selected = true;
}
else if (this.listView1.Items[1].Checked)
{
this.listView1.Items[1].Selected = true;
}
¡­¡­



È»ºó»»³ÉÉÏÃæ´úÂëµÄÎÊÌ⣺±ÈÈçitem[4]±¾À´¾ÍÊÇcheckedµÄ£¬È»ºóÎÒÏÖÔÚʹitem[5].checked£¬¿ÉÊDz¢²»»áʹitem[5].selected£»




²»ÖªµÀÄãµÄ¸ü±¾Ä¿µÄʱʲô ûÓжÁ¶®ÄãµÄÁôÑÔ.......

ѧϰ...

ÒýÓÃ
²»ÖªµÀÄãµÄ¸ü±¾Ä¿µÄʱʲô ûÓжÁ¶®ÄãµÄÁôÑÔ.......


2.ÎÒÏëʵÏÖ£ºµ±ÎÒÑ¡ÖÐitemÇ°ÃæµÄcheckboxµÄʱºò£¬Í¬Ê±Ò²ÈøÃitem±»selected£»



ÊDz»ÊÇÒª°ÑMultSelect ÊôÐÔÉèΪTRUE °¡


Â¥Ö÷£¬Èç¹ûÄãÏëÔÚListViewËùÑ¡Ïî¸Ä±äʱ£¬½øÐÐһЩ²Ù×


Ïà¹ØÎÊ´ð£º

±éÀúÒ»¸öxml²¢Êä³öÖ¸¶¨½ÚµãµÄÖµ - .NET¼¼Êõ / C#

ÎÒÓÐÒ»¸öÀàËƵÄxmlµÄ string£¬Ïëͨ¹ý±éÀúÔõô¸öxml Êä³öÎÒÏëÒªµÄelementµÄÖµ
xml Ϊ£º
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
  <RequestType>DISCOVER_XML_ME ......

visual c++2008²»ÄܱàÒëC³ÌÐòÂð - C/C++ / CÓïÑÔ

visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£©

¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆ̨³ÌÐò¾Í¿ÉÒÔ

ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£ ......

c# Winform ´¥ÃþÆÁ³ÌÐò - .NET¼¼Êõ / C#

¹«Ë¾¿ª·¢Ò»¸ö´¥ÃþÆÁ³ÌÐò£¬ÎÒ¸ºÔðµÄÒ»¿é£¬ÊµÏÖÕâÑùÒ»¸ö¹¦ÄÜ£¬µ±Êó±êµã»÷´°¿ÚÖÐͼƬ£¨Ò»ÕÅͼ·Ö³É¼¸²¿·Ö£©µÄÆäÖÐÒ»²¿·Öʱ£¬½«Õⲿ·ÖͼƬ½ØÈ¡³öÀ´£¬µ¯³öеĴ°¿Ú£¬½«½ØÈ¡³öµÄͼƬÏÔʾ³öÀ´¡£ÎÒʹÓÃRectangeÀà¿ØÖÆÁË·µ»Ø£¬ ......

c# listviewÌí¼ÓºÏ¼ÆÐÐ - .NET¼¼Êõ / C#

ÓÃlistviewÏÔʾ³ö´ÓÊý¾Ý¿âÖвéѯ³öµÄ¼Ç¼£¬ÏëÔÚ×îºó¼Ç¼ºóÃæÌí¼ÓÒ»ÌõºÏ¼ÆÐУ¬ÈçºÎʵÏÖ£¡Ð»Ð»´ó¼Ò£¡
°ó¶¨Êý¾ÝÄãÓ¦¸ÃûÎÊÌâ°É£¬°ó¶¨ÍêÒÔºóÓÃÒ»¸öÑ­»·°ÑÄãҪͳ¼ÆÊý¾ÝµÄÁÐÖеÄÊý¾Ý×ܺÍÓÃÒ»¸ö±äÁ¿½ÓÊÜ£¬È»ºóÔÚÑ­»·ÍâÃæne ......

¹ØÓÚ tiny c ¶Î´íÎóµÄÎÊÌâ - C/C++ / CÓïÑÔ

СµÜ×î½üÔÚÁ˽â¹ØÓÚtiny c µÄÎÊÌâ¡£ÔÚlinuxÏÂ×¼±¸°²×°¡£µ«°²×°Íê³ÉºóÅöµ½ÁËһЩÎÊÌ⡣ϣÍû´ó¼ÒÄܹ»°ïæ½â¾ö¡£ÒÔÏÂÊÇ°²×°Íê³ÉºóµÄÖ´Ðв½Öè¡£
[student@localhost ~]$ tcc -v
tcc version 0.9.25
[student@localhos ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ