Forum > Coding >

[HELP] How do you use Listview?

Posts: 4

Threads: 3

Joined: Feb, 2021

Reputation: 0

Posted

I wanted to know how to use Listview WINFORM

  • 0

Posts: 673

Threads: 30

Joined: Aug, 2020

Reputation: 6

Replied

public static DirectoryInfo Info { get; } = new("./scripts/");

[STAThread]
static void Main(string[] args)
{
    FileInfo[] Collection = Info.GetFiles(".txt");

    for (int I = 0; I < Collection.Length; I++)
        Console.WriteLine(Collection[I].FullName);
}

You don't need STAThread, I just included that because mine uses it.

  • 0

MINISHXP

minishxp

Posts: 813

Threads: 5

Joined: Jan, 2021

Reputation: 9

Replied

its like a list

 

:bigbrain:

  • 0

hi123

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )