اذهب الي المحتوي
أوفيسنا

توزيع الitem في listview


SEMO.Pa3x

الردود الموصى بها

 

 

 

السلام عليكم، كثير من الاخوة لا يعرفون كيفية توزيع الitems بالlistview
توضيح الفكرة اكثر:


مثال بسيط عبارة processes informations توزيع معلومات العمليات على الجدول
شرحت الكم الاكواد حتى يسهل عليكم

 

'----------------------------
' c0ded bY: SEMO.Pa3x
' Skype  : security.najaf
'----------------------------
On Error Resume Next
Dim NumColum(3) As String ' number colum in your listview
Dim LVI As ListViewItem
Dim PRC() As Process = Process.GetProcesses
For Each xGet In PRC
NumColum(0) = xGet.ProcessName ' first colum
NumColum(1) = xGet.Id ' second colum
NumColum(2) = xGet.MainModule.FileName.ToString ' third colum
LVI = New ListViewItem(NumColum)
 
'--------------------------------------------------
' if you want make ForColor or BackColor just use:
'--------------------------------------------------
 
' LVI.ForeColor = Color.Black
' LVI.BackColor = Color.Purple
 
ListView1.Items.Add(LVI)
Next

 

تم بحمد الله ، SEMO.Pa3x

:38:

  • Thanks 1
رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • اضف...

Important Information