Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
QuestionHow to executing the .exe file in others pc using the my own pc?? Pin
tyrone01094-Mar-09 20:30
tyrone01094-Mar-09 20:30 
AnswerRe: How to executing the .exe file in others pc using the my own pc?? Pin
Vimalsoft(Pty) Ltd4-Mar-09 21:05
professionalVimalsoft(Pty) Ltd4-Mar-09 21:05 
GeneralRe: How to executing the .exe file in others pc using the my own pc?? Pin
tyrone01094-Mar-09 22:05
tyrone01094-Mar-09 22:05 
GeneralRe: How to executing the .exe file in others pc using the my own pc?? Pin
Vimalsoft(Pty) Ltd4-Mar-09 22:10
professionalVimalsoft(Pty) Ltd4-Mar-09 22:10 
GeneralRe: How to executing the .exe file in others pc using the my own pc?? Pin
tyrone01094-Mar-09 22:13
tyrone01094-Mar-09 22:13 
AnswerRe: How to executing the .exe file in others pc using the my own pc?? Pin
Xmen Real 4-Mar-09 22:45
professional Xmen Real 4-Mar-09 22:45 
AnswerRe: How to executing the .exe file in others pc using the my own pc?? Pin
Dragonfly_Lee5-Mar-09 22:39
Dragonfly_Lee5-Mar-09 22:39 
Questionhow to show file icons in list view control? Pin
lsh486love4-Mar-09 20:14
lsh486love4-Mar-09 20:14 
Hi, all.

I study C# programming about list view control.
and I would like to show file icons on the list view control, when I drag & drop some files.
I could show file paths on list view control though. but I can't show file icons.


 string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);<br />
            foreach (string file in files)<br />
            {             <br />
                Icon ico = Icon.ExtractAssociatedIcon(@file);<br />
                Image img = ico.ToBitmap();<br />
<br />
                ListViewItem lvi = new ListViewItem();<br />
                lvi.Text = "";<br />
                lvi.ImageList.Images.Add(img);<br />

// this line has an error.
// I would like to show file icons on this list view control , when I drag & drop some files.
// I can show file paths when I drag & drop on the control though.

   listView1.Items.Add(file);<br />
                       <br />
}<br />


Thanks.Smile | :)
AnswerRe: how to show file icons in list view control? Pin
Xmen Real 4-Mar-09 20:20
professional Xmen Real 4-Mar-09 20:20 
GeneralRe: how to show file icons in list view control? Pin
lsh486love4-Mar-09 20:33
lsh486love4-Mar-09 20:33 
GeneralRe: how to show file icons in list view control? Pin
0x3c04-Mar-09 20:50
0x3c04-Mar-09 20:50 
GeneralRe: how to show file icons in list view control? Pin
Xmen Real 4-Mar-09 22:34
professional Xmen Real 4-Mar-09 22:34 
AnswerRe: how to show file icons in list view control? Pin
Dragonfly_Lee5-Mar-09 23:00
Dragonfly_Lee5-Mar-09 23:00 
QuestionClass property isn't working in custom controls Pin
Xmen Real 4-Mar-09 20:13
professional Xmen Real 4-Mar-09 20:13 
AnswerRe: Class property isn't working in custom controls Pin
Greg Chelstowski4-Mar-09 21:28
Greg Chelstowski4-Mar-09 21:28 
GeneralRe: Class property isn't working in custom controls Pin
Xmen Real 4-Mar-09 22:37
professional Xmen Real 4-Mar-09 22:37 
GeneralRe: Class property isn't working in custom controls Pin
Greg Chelstowski5-Mar-09 0:01
Greg Chelstowski5-Mar-09 0:01 
Questionembedding of videos Pin
adiseshaiah4-Mar-09 20:10
adiseshaiah4-Mar-09 20:10 
QuestionDSOFile.dsoFileOpenOptions Options ??? (File Summary Info) ..... Pin
S K Y4-Mar-09 19:31
S K Y4-Mar-09 19:31 
QuestionData Binding Pin
Sajjad Leo4-Mar-09 19:05
Sajjad Leo4-Mar-09 19:05 
AnswerRe: Data Binding Pin
Xmen Real 4-Mar-09 19:11
professional Xmen Real 4-Mar-09 19:11 
GeneralRe: Data Binding Pin
Sajjad Leo4-Mar-09 19:59
Sajjad Leo4-Mar-09 19:59 
AnswerRe: Data Binding Pin
Christian Graus4-Mar-09 19:32
protectorChristian Graus4-Mar-09 19:32 
GeneralRe: Data Binding Pin
Sajjad Leo4-Mar-09 19:40
Sajjad Leo4-Mar-09 19:40 
QuestionHow to list live object instances while an application is running? Pin
Samuel Cherinet4-Mar-09 19:04
Samuel Cherinet4-Mar-09 19:04 

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.