Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: about to get trolled but Pin
EliottA14-Oct-08 4:05
EliottA14-Oct-08 4:05 
GeneralRe: about to get trolled but Pin
Simon P Stevens14-Oct-08 4:27
Simon P Stevens14-Oct-08 4:27 
AnswerRe: about to get trolled but Pin
Sean Mulkerrin14-Oct-08 4:18
Sean Mulkerrin14-Oct-08 4:18 
GeneralRe: about to get trolled but Pin
EliottA14-Oct-08 4:25
EliottA14-Oct-08 4:25 
AnswerRe: about to get trolled but Pin
Dan Neely14-Oct-08 4:47
Dan Neely14-Oct-08 4:47 
GeneralRe: about to get trolled but Pin
Guffa14-Oct-08 5:33
Guffa14-Oct-08 5:33 
AnswerRe: about to get trolled but Pin
Humble Programmer14-Oct-08 11:10
Humble Programmer14-Oct-08 11:10 
GeneralRe: about to get trolled but Pin
EliottA15-Oct-08 2:29
EliottA15-Oct-08 2:29 
Questionread xml Pin
arkiboys14-Oct-08 3:18
arkiboys14-Oct-08 3:18 

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.