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 168043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:22:59+00:00 2026-05-11T12:22:59+00:00

The other day, I asked how to create a message box in your class

  • 0

The other day, I asked how to create a message box in your class, but one of the answers stated that was it wasn’t the correct approach. I understand that this is because it really defeats the point of a class.

My program reads word by word from a string file, and checks if each word is in the database. I want to put every word not found into a ListBox on the form, which can have multiple selections.

How do I send that data back to the form each time a new word is found?

  • 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. 2026-05-11T12:22:59+00:00Added an answer on May 11, 2026 at 12:22 pm

    I suggest you make a method something like this:

    /* ... */  public IEnumerable<string> FindMissingWords(                                string fileName, IEnumerable<string> toSearch) {     List<string> missingWords = new List<string>();      // todo: the appropriate code for looking up strings in the file, using      // the filename and the strings that we passed into the function.      // if you find one, add it to missingWords      return missingWords; } 

    Then call that method from your form, and add each string it returns to your box.

    (If you’re not familiar with IEnumerable, don’t worry — it’s just a interface that defines a sequence of things, like an array or a list. You could pass an array of strings instead, but it would be a little less precise.)

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

Sidebar

Related Questions

So the other day, I asked a question on Stackoverflow and got answers. But
I asked a similar question the other day but wasn't satisfied with the response,
I asked a similar question the other day but it seems no one was
This is very similar to a question I asked the other day but my
This is very similar to a question I asked the other day but my
This question is related to one I asked the other day which I got
I was using an app the other day that crashed, but as it crashed
I asked this the other day but it was closed, probably because I have
I asked this question the other day and wasn't able to get the solution
I asked the other day if data integrity (of flushed data) is kept even

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.