Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ËùÑ¡Ïî¸Ä±äʱ£¬½øÐÐһЩ²Ù×


Ïà¹ØÎÊ´ð£º

VFPÈçºÎµ÷ÓÃCº¯Êý - ÆäËûÊý¾Ý¿â¿ª·¢ / VFP

ÇëÎÊVFPÖÐÈçºÎµ÷ÓÃC/C++º¯Êý£¿

ÄãÒªµ÷ÓÃʲô¹¦Äܵĺ¯Êý£¿Òª¿´¿´VFPÖÐÓÐûÓжÔÓ¦µÄº¯Êý£¬Èç¹ûÓоÍÊ¡×ÅÔÙµ÷ÓÃÁË¡£Èç¹ûûÓУ¬¿ÉÒÔ½«C/C++º¯Êýд¸öDLL»òFLL£¬È»ºóÔÚVFPµ÷Óü´¿É¡£

Ê®¶¹Èý ÀÏʦ£¬Ôõô²ÅÄÜÐÞ¸Ä×Ô¼ºµÄ ......

ÇóÖú£ºC´úÂëchange toVB´úÂë - VB / »ù´¡Àà

ͦ·±Ëö£¬Ö®Ç°·¢µÄÌû×Ó£¬·Öֵ̫µÍÏÖÔÚÖØ·¢Ò»¸ö¡£»¶Ó­¸÷λ´óÏÀ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[] ......

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

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

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

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

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

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