Click here to Skip to main content
15,914,416 members
Home / Discussions / C#
   

C#

 
Questionone question related to the memory and sources release Pin
Seraph_summer14-Oct-08 5:33
Seraph_summer14-Oct-08 5:33 
AnswerRe: one question related to the memory and sources release Pin
Simon P Stevens14-Oct-08 5:36
Simon P Stevens14-Oct-08 5:36 
GeneralRe: one question related to the memory and sources release Pin
Seraph_summer14-Oct-08 5:45
Seraph_summer14-Oct-08 5:45 
GeneralRe: one question related to the memory and sources release Pin
Simon P Stevens14-Oct-08 5:59
Simon P Stevens14-Oct-08 5:59 
GeneralRe: one question related to the memory and sources release Pin
Seraph_summer14-Oct-08 5:59
Seraph_summer14-Oct-08 5:59 
GeneralRe: one question related to the memory and sources release Pin
Simon P Stevens14-Oct-08 6:04
Simon P Stevens14-Oct-08 6:04 
QuestionWindows Forms Action Framework [modified] Pin
Donkey Master14-Oct-08 5:17
Donkey Master14-Oct-08 5:17 
AnswerRe: Windows Forms Action Framework Pin
Simon P Stevens14-Oct-08 5:34
Simon P Stevens14-Oct-08 5:34 
GeneralRe: Windows Forms Action Framework Pin
Donkey Master14-Oct-08 5:56
Donkey Master14-Oct-08 5:56 
GeneralRe: Windows Forms Action Framework Pin
Simon P Stevens14-Oct-08 6:07
Simon P Stevens14-Oct-08 6:07 
QuestionHow To discover websevices Method Pin
shames(Sam)14-Oct-08 4:39
shames(Sam)14-Oct-08 4:39 
AnswerRe: How To discover websevices Method Pin
led mike14-Oct-08 4:49
led mike14-Oct-08 4:49 
GeneralRe: How To discover websevices Method Pin
shames(Sam)14-Oct-08 6:03
shames(Sam)14-Oct-08 6:03 
Questiona way to execute the file on list view by doubleclick Pin
Gianpaolo Barci14-Oct-08 4:37
Gianpaolo Barci14-Oct-08 4:37 
QuestionRe: a way to execute the file on list view by doubleclick Pin
led mike14-Oct-08 4:46
led mike14-Oct-08 4:46 
AnswerRe: a way to execute the file on list view by doubleclick Pin
Gianpaolo Barci14-Oct-08 5:10
Gianpaolo Barci14-Oct-08 5:10 
AnswerRe: a way to execute the file on list view by doubleclick Pin
DaveyM6914-Oct-08 5:31
professionalDaveyM6914-Oct-08 5:31 
How are you populating your listview with the files? Where is the file information coming from?

Each ListViewItem has a Tag property that holds an object. Save your full path to the file in there. When you need it, just cast that ListViewItem's Tag to a string and you've got the file's path.

Alternatively, create a custom ListViewItem that has a Path property, then you can cast the entire item to your class and access the Path property.
public class ListViewItemWithPath : ListViewItem
    {
        public ListViewItemWithPath(string fileName, string path)
        {
            Text = fileName;
            m_Path = path;
        }
        private string m_Path;
        public string Path
        {
            get { return m_Path; }
            set { m_Path = value; }
        }
    }


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

GeneralRe: a way to execute the file on list view by doubleclick Pin
Gianpaolo Barci14-Oct-08 5:48
Gianpaolo Barci14-Oct-08 5:48 
GeneralRe: a way to execute the file on list view by doubleclick Pin
Gianpaolo Barci14-Oct-08 6:44
Gianpaolo Barci14-Oct-08 6:44 
GeneralRe: a way to execute the file on list view by doubleclick Pin
DaveyM6914-Oct-08 9:09
professionalDaveyM6914-Oct-08 9:09 
QuestionCrystal Report Deployment Pin
K V Sekhar14-Oct-08 4:00
K V Sekhar14-Oct-08 4:00 
AnswerRe: Crystal Report Deployment Pin
selcuks14-Oct-08 4:43
selcuks14-Oct-08 4:43 
AnswerRe: Crystal Report Deployment Pin
Ennis Ray Lynch, Jr.14-Oct-08 7:15
Ennis Ray Lynch, Jr.14-Oct-08 7:15 
Questionabout to get trolled but [modified] Pin
EliottA14-Oct-08 3:42
EliottA14-Oct-08 3:42 
AnswerRe: about to get trolled but Pin
Russell Jones14-Oct-08 4:03
Russell Jones14-Oct-08 4:03 

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.