Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 560249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:19:23+00:00 2026-05-13T12:19:23+00:00

I need two seperate lists, which every item is Integer, String, Bitmap – and

  • 0

I need two seperate lists, which every item is Integer, String, Bitmap – and one which every item is Integer, String String. However I don’t know how to do this, or even where to look – I’ve googled for custom objects and custom object lists. What I’m trying to do is this.
Custom Object1 is Integer, String, Bitmap
Custom Object2 is Integer, String, String

In one thread I’ll be adding items to List1(Of Object1), and processing them, and adding the results to List2(Of Object2), however I need to be able from other threads to look at the list and say only give me the items where Integer = (my thread ID), is this possible? Any help, or even links to information that would be relevant to this request would be helpful?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:19:24+00:00Added an answer on May 13, 2026 at 12:19 pm

    Do something like this:

    Public Class Type1
        Private _ThreadID As Integer
        Public Property ThreadID() As Integer
           Get
               Return _ThreadID
           End Get
           Set
               _ThreadID = Value
           End Set
        End Property
    
        Private _MyString As String
        Public Property MyString() as String
            Get
                Return _MyString
            End Get
            Set 
                _MyString = Value
            End Set
        End Property
    
        Private _MyBitmap As Bitmap
        Public Property MyBitmap As Bitmap
            Get
                Return _MyBitmap
            End Get
            Set
                _MyBitmap = Value
            End Set
        End Property
     End Class
    

    .

    Dim list1 As New List(Of Type1)()
    ''#  ... Add some items to the list...
    
    ''# List items with a given thread id:
    Dim SomeThreadID As Integer = GetMyThreadID()
    list1.Where(Function(o) o.ThreadID = SomeThreadID)
    

    Of course, you’ll want to use more meaningful names. As for the multi-threading aspect, look into using the Monitor class to lock your lists across all threads while one thread is using it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to retrieve information from two separate models which are similar but not
I need two comparisons in my Sql server, One between Dates and One between
I need two methods one to encrypt and one to decrypt an xml file
I'm setting up a directory application for which I need to have two separate
I have two lists comprised of different complex-objects, and each one is from 2
I have two tables that I need to compare and update values in one
I need to take rows from two separate tables, and arrange them in descending
I need two tables and two sets of fields, not the name of the
I have got two models, User and Event. I need two kind of relationship
I have a Maven multi-module project and I need two different parent POMs in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.