Click here to Skip to main content
15,905,867 members
Home / Discussions / C#
   

C#

 
QuestionWindows Forms Streaming? How? Pin
BGearig12-Nov-07 5:49
BGearig12-Nov-07 5:49 
AnswerRe: Windows Forms Streaming? How? Pin
led mike12-Nov-07 7:57
led mike12-Nov-07 7:57 
GeneralC# Course Syllabus Pin
Brady Kelly12-Nov-07 5:49
Brady Kelly12-Nov-07 5:49 
GeneralRe: C# Course Syllabus Pin
Colin Angus Mackay12-Nov-07 6:10
Colin Angus Mackay12-Nov-07 6:10 
GeneralRe: Problems in .net socket Pin
Justin Perez12-Nov-07 5:42
Justin Perez12-Nov-07 5:42 
GeneralRe: Problems in .net socket Pin
nayabsiddiqi12-Nov-07 5:47
nayabsiddiqi12-Nov-07 5:47 
QuestionDrag and Drop FROM a ListBox to the desktop Pin
eggsy8412-Nov-07 5:39
eggsy8412-Nov-07 5:39 
AnswerRe: Drag and Drop FROM a ListBox to the desktop Pin
Skippums12-Nov-07 9:26
Skippums12-Nov-07 9:26 
You should be able to do the following:
...
using System.Windows.Forms;
...
private ListBox lb;
...
private void SomeEvent(object sender, EventArgs e) {
object data = ...; // set this to be the data you want to be dragged
// note that the data MUST be a type recognized by the system
// for it to be able to be dropped onto the desktop (like a file)
DragDropEffects result = lb.DoDragDrop(data, DragDropEffects.All);
// Do some stuff based on whether the result is move, copy, etc.
}

Hope this helps!

Jeff
GeneralRe: Drag and Drop FROM a ListBox to the desktop Pin
eggsy8412-Nov-07 22:44
eggsy8412-Nov-07 22:44 
GeneralRe: Drag and Drop FROM a ListBox to the desktop Pin
eggsy8412-Nov-07 22:45
eggsy8412-Nov-07 22:45 
GeneralRe: Drag and Drop FROM a ListBox to the desktop Pin
Skippums13-Nov-07 4:58
Skippums13-Nov-07 4:58 
GeneralRe: Drag and Drop FROM a ListBox to the desktop Pin
eggsy8413-Nov-07 5:23
eggsy8413-Nov-07 5:23 
QuestionMultithreaded windows service Pin
Vijay Kulavade12-Nov-07 5:35
Vijay Kulavade12-Nov-07 5:35 
AnswerRe: Multithreaded windows service Pin
Guinness4Strength12-Nov-07 6:52
Guinness4Strength12-Nov-07 6:52 
QuestionProblems in .net socket Pin
nayabsiddiqi12-Nov-07 4:51
nayabsiddiqi12-Nov-07 4:51 
AnswerRe: Problems in .net socket Pin
Justin Perez12-Nov-07 5:13
Justin Perez12-Nov-07 5:13 
GeneralRe: Problems in .net socket Pin
nayabsiddiqi12-Nov-07 5:39
nayabsiddiqi12-Nov-07 5:39 
AnswerRe: Problems in .net socket Pin
Ennis Ray Lynch, Jr.12-Nov-07 6:41
Ennis Ray Lynch, Jr.12-Nov-07 6:41 
GeneralRe: Problems in .net socket Pin
nayabsiddiqi13-Nov-07 1:19
nayabsiddiqi13-Nov-07 1:19 
AnswerRe: Problems in .net socket Pin
Guinness4Strength12-Nov-07 7:08
Guinness4Strength12-Nov-07 7:08 
GeneralRe: Problems in .net socket Pin
nayabsiddiqi13-Nov-07 1:22
nayabsiddiqi13-Nov-07 1:22 
QuestionUser located controls Pin
Ron Modesitt12-Nov-07 4:29
Ron Modesitt12-Nov-07 4:29 
AnswerRe: User located controls Pin
Guinness4Strength12-Nov-07 7:05
Guinness4Strength12-Nov-07 7:05 
GeneralRe: User located controls Pin
Ron Modesitt12-Nov-07 8:33
Ron Modesitt12-Nov-07 8:33 
Questionleft panel Pin
md_refay12-Nov-07 3:37
md_refay12-Nov-07 3:37 

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.