Click here to Skip to main content
15,913,467 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Get index of selected item in Listbox Pin
Name Removed30-Jun-04 11:40
Name Removed30-Jun-04 11:40 
GeneralRe: Get index of selected item in Listbox Pin
Glen Conaway30-Jun-04 13:21
Glen Conaway30-Jun-04 13:21 
GeneralCombo Box Filter Pin
lildragon30-Jun-04 5:53
lildragon30-Jun-04 5:53 
GeneralRe: Combo Box Filter Pin
ccotton33330-Jun-04 10:56
ccotton33330-Jun-04 10:56 
GeneralRe: Combo Box Filter Pin
lildragon30-Jun-04 11:39
lildragon30-Jun-04 11:39 
GeneralRe: Combo Box Filter Pin
Ravi S.V.30-Jun-04 21:36
Ravi S.V.30-Jun-04 21:36 
GeneralRe: Combo Box Filter Pin
Anonymous1-Jul-04 6:55
Anonymous1-Jul-04 6:55 
GeneralRe: Combo Box Filter Pin
Serge Lobko-Lobanovsky1-Jul-04 4:17
Serge Lobko-Lobanovsky1-Jul-04 4:17 
Hi,

How about creating a custom class that inherits from ArrayList and provides a readonly property which returns a filtered list? Like this:

Public Class MyItem
   Public Field1 As String
End Class

Public Class MyList
  Inherits ArrayList

  Public Readolny Property FilteredByField1(FilterFieldVal As String) As MyList
     Get
       Dim mi As MyItem
       Dim rcol As New MyList

       For Each mi In Me
         If mi.Field1 = FilterFieldVal Then rcol.Add(mi)
       Next

       Return rcol
     End Get
  End Property
End Class




Regards,
Serge (Logic Software, Easy Projects .NET site)
GeneralRe: Combo Box Filter Pin
Anonymous1-Jul-04 7:03
Anonymous1-Jul-04 7:03 
GeneralNew Combo Box Filter Pin
lildragon5-Jul-04 8:09
lildragon5-Jul-04 8:09 
GeneralLatest ComboBox Filter Code Pin
lildragon5-Jul-04 10:42
lildragon5-Jul-04 10:42 
GeneralInserting Image into Richtext Box Control Pin
Harish Bailwad30-Jun-04 1:41
Harish Bailwad30-Jun-04 1:41 
GeneralRe: Inserting Image into Richtext Box Control Pin
Dave Kreskowiak30-Jun-04 12:06
mveDave Kreskowiak30-Jun-04 12:06 
GeneralInserting Image into Richtext Box Control Pin
hari_vb30-Jun-04 1:41
susshari_vb30-Jun-04 1:41 
GeneralDrag URL -> Drop File Pin
Timotei_Younge29-Jun-04 23:16
Timotei_Younge29-Jun-04 23:16 
GeneralRe: Drag URL -> Drop File Pin
Dave Kreskowiak30-Jun-04 2:42
mveDave Kreskowiak30-Jun-04 2:42 
Questionhow to put an exe file into vb6.0 Pin
saimram29-Jun-04 19:36
saimram29-Jun-04 19:36 
AnswerRe: how to put an exe file into vb6.0 Pin
Dave Kreskowiak30-Jun-04 2:39
mveDave Kreskowiak30-Jun-04 2:39 
Generaldata type error Pin
GaryKoh29-Jun-04 16:50
GaryKoh29-Jun-04 16:50 
GeneralRe: data type error Pin
Dave Kreskowiak30-Jun-04 0:38
mveDave Kreskowiak30-Jun-04 0:38 
GeneralRe: data type error Pin
GaryKoh30-Jun-04 1:24
GaryKoh30-Jun-04 1:24 
GeneralRe: data type error Pin
Dave Kreskowiak30-Jun-04 12:04
mveDave Kreskowiak30-Jun-04 12:04 
GeneralRe: data type error Pin
GaryKoh30-Jun-04 17:13
GaryKoh30-Jun-04 17:13 
GeneralRe: data type error Pin
Dave Kreskowiak1-Jul-04 1:21
mveDave Kreskowiak1-Jul-04 1:21 
GeneralRe: data type error Pin
GaryKoh1-Jul-04 3:29
GaryKoh1-Jul-04 3:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.