Click here to Skip to main content
15,886,799 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to save image in a folder? and how to show image in a picturebox with windows project by C# language Pin
Thomas Krojer25-Mar-09 2:45
Thomas Krojer25-Mar-09 2:45 
QuestionHow to attach a file(attachment) in a datagrid cell? Pin
hhill24-Mar-09 20:27
hhill24-Mar-09 20:27 
AnswerRe: How to attach a file(attachment) in a datagrid cell? Pin
King Julien24-Mar-09 21:37
King Julien24-Mar-09 21:37 
QuestionListView in C# Pin
mrithula824-Mar-09 20:00
mrithula824-Mar-09 20:00 
AnswerRe: ListView in C# Pin
Christian Graus24-Mar-09 20:25
protectorChristian Graus24-Mar-09 20:25 
GeneralRe: ListView in C# Pin
mrithula824-Mar-09 20:56
mrithula824-Mar-09 20:56 
GeneralRe: ListView in C# Pin
King Julien24-Mar-09 21:23
King Julien24-Mar-09 21:23 
GeneralRe: ListView in C# Pin
mrithula824-Mar-09 21:36
mrithula824-Mar-09 21:36 
Hi Thanks for the reply.i tried with this, but it shows me an error for the line
foreach (String sfil in fil2)
saying that the foreach cannot be applied to FileInfo.So i tried without the foreach
foreach (String filename in files)
                                       {
                                           FileInfo fil2 = new FileInfo(filename);
                                           lvi = new ListViewItem();
                                           lvi.Text = filename.ToString();
                                           listView1.Items.Add(lvi);}

In any way im getting only the last file in the folder.The following gets the files from the folder.I do not know how to display it in the listview control.
DirectoryInfo di = new DirectoryInfo(foldername);
                                    if (di.Exists)
                                    {
                                        String[] files;
                                        files = Directory.GetFiles(foldername);

GeneralRe: ListView in C# Pin
King Julien24-Mar-09 23:00
King Julien24-Mar-09 23:00 
GeneralRe: ListView in C# Pin
mrithula825-Mar-09 0:11
mrithula825-Mar-09 0:11 
GeneralRe: ListView in C# Pin
King Julien25-Mar-09 0:55
King Julien25-Mar-09 0:55 
GeneralRe: ListView in C# Pin
mrithula825-Mar-09 19:25
mrithula825-Mar-09 19:25 
GeneralRe: ListView in C# Pin
King Julien25-Mar-09 20:08
King Julien25-Mar-09 20:08 
GeneralRe: ListView in C# Pin
mrithula825-Mar-09 20:18
mrithula825-Mar-09 20:18 
GeneralRe: ListView in C# Pin
King Julien25-Mar-09 20:49
King Julien25-Mar-09 20:49 
GeneralRe: ListView in C# Pin
mrithula825-Mar-09 21:08
mrithula825-Mar-09 21:08 
GeneralRe: ListView in C# Pin
King Julien25-Mar-09 21:30
King Julien25-Mar-09 21:30 
GeneralRe: ListView in C# Pin
mrithula826-Mar-09 1:08
mrithula826-Mar-09 1:08 
GeneralRe: ListView in C# Pin
King Julien26-Mar-09 1:24
King Julien26-Mar-09 1:24 
GeneralRe: ListView in C# Pin
mrithula826-Mar-09 1:32
mrithula826-Mar-09 1:32 
GeneralRe: ListView in C# Pin
King Julien26-Mar-09 1:56
King Julien26-Mar-09 1:56 
GeneralRe: ListView in C# Pin
mrithula826-Mar-09 5:59
mrithula826-Mar-09 5:59 
GeneralRe: ListView in C# Pin
mrithula826-Mar-09 19:00
mrithula826-Mar-09 19:00 
GeneralRe: ListView in C# Pin
King Julien26-Mar-09 19:22
King Julien26-Mar-09 19:22 
GeneralRe: ListView in C# Pin
mrithula829-Mar-09 0:51
mrithula829-Mar-09 0:51 

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.