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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:40:22+00:00 2026-06-12T16:40:22+00:00

IEnumerable<string> peopleWithInvalidAge = (from age in User where age < 0 select name ).Distinct();

  • 0
IEnumerable<string> peopleWithInvalidAge =
                    (from age in User
                     where age < 0
                     select name ).Distinct();

MessageBox.show("The people who have invalid age are {0}" , string.Join(", ", peopleWithInvalidAge) )

This displays the output as string . But what i want is that the output should be displayed in a tabular form . With Name and age when MessageBox.show is called.

If we can highlight inside message box then also it will be great

Please help.

  • 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-06-12T16:40:23+00:00Added an answer on June 12, 2026 at 4:40 pm

    This is for WPF

    For formatting could use Window.
    You can pass the IEnumerable in the ctor.
    Window.ShowDialog is modal.

    Window.ShowDialog Method

    Window1 win = new Window1(new List<string> { "john", "susan" });
    win.ShowDialog();
    
    public Window1(IEnumerable<string> names)
    {
        Names = names;
        InitializeComponent();
    }
    public IEnumerable<string> Names { get; private set; }
    
    <Window x:Class="ListViewUpdate.Window1"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            DataContext="{Binding RelativeSource={RelativeSource self}}"
            Title="Window1" Height="300" Width="300">
    <Grid>
        <ListView ItemsSource="{Binding Path=Names}" />
    </Grid>
    </Window>
    

    Moderator there are three parts to question.
    Modal, passing data, and formatting.
    The other answer does not address modal or passing data to a Window.
    I posted while I was creating the passing and formatting sample.

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

Sidebar

Related Questions

i have this code : IEnumerable<string> q = customers /*EF entity*/ .Select (c =>
I have an IEnumerable<KeyValuePair<string,string>> , from which I would like, ideally, an anonymous object
(using Entity Framework) when i write : IEnumerable<string> q = customers /*EF entity*/ .Select
I have a method with this signature: IEnumerable<string> GetCombinations(string s, int length) And I
Given this object class Contact { public IEnumerable<Person> People { get; } public string
I have a collection of IEnumerable<sentence> (sentence = string) I want to split all
I have the following code new Dictionary<string,IEnumerable<Control>>() { { view1, new Control[] { contents,
I have this delegate declaration: public delegate IEnumerable<T> SearchInputTextStrategy<T, U>(string param); Lets assume I
I have created a structure and list. public struct CarMake { public string name;
I'm doing a simple Linq query on an XML file IEnumerable<string> value = from

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.