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

C#

 
AnswerRe: How to use a self-made dll in a C# project from a different location. Pin
Lev Danielyan26-Dec-08 7:26
Lev Danielyan26-Dec-08 7:26 
Questionstore procedure security issue Pin
George_George26-Dec-08 0:08
George_George26-Dec-08 0:08 
AnswerRe: store procedure security issue Pin
Tamer Oz26-Dec-08 0:28
Tamer Oz26-Dec-08 0:28 
GeneralRe: store procedure security issue Pin
George_George26-Dec-08 16:40
George_George26-Dec-08 16:40 
Questiontabs without tabs Pin
dustybike25-Dec-08 23:31
dustybike25-Dec-08 23:31 
AnswerRe: tabs without tabs Pin
Member 467835125-Dec-08 23:38
Member 467835125-Dec-08 23:38 
GeneralRe: tabs without tabs [modified] Pin
dustybike25-Dec-08 23:45
dustybike25-Dec-08 23:45 
QuestionDrag and Drop in C# WinForms Pin
Member 467835125-Dec-08 22:42
Member 467835125-Dec-08 22:42 
Hi,

I'm trying to implement a drag-and-drop into a list box. The code is copied below.

The problem is that it works fine on my (development) computer but when I share the executable with my colleagues in the office (who're using XP), it doesn't work!

The DragEnter seems to be working (since the cursor changes), but the DragDrop doesn't work (the MessageBox doesn't show).

Can any one help?

Here's the code:

// when a user drags files into the list box
private void MyListBox_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.FileDrop)) e.Effect = DragDropEffects.All;
else e.Effect = DragDropEffects.None;
}

// when a user drops files into the image list box
private void MyListBox_DragDrop(object sender, DragEventArgs e)
{
// display message
MessageBox.Show("Drag drop successful");
// pick filenames dropped into the list box
string[] sFileNames = (string[])e.Data.GetData(DataFormats.FileDrop, false);
}

Thanks!
QuestionGet information about policies (password policy, account policy, etc) of my windows computer in C# Pin
josenicolas25-Dec-08 22:11
josenicolas25-Dec-08 22:11 
AnswerRe: Get information about policies (password policy, account policy, etc) of my windows computer in C# Pin
Richard Andrew x6426-Dec-08 4:35
professionalRichard Andrew x6426-Dec-08 4:35 
GeneralRe: Get information about policies (password policy, account policy, etc) of my windows computer in C# Pin
josenicolas28-Dec-08 0:28
josenicolas28-Dec-08 0:28 
QuestionThe type initializer for ' ' threw an exception? Pin
dec8225-Dec-08 21:15
dec8225-Dec-08 21:15 
AnswerRe: The type initializer for ' ' threw an exception? Pin
leppie26-Dec-08 7:48
leppie26-Dec-08 7:48 
QuestionSaving file using WebBrowser control Pin
Atul Kharecha25-Dec-08 20:29
Atul Kharecha25-Dec-08 20:29 
AnswerRe: Saving file using WebBrowser control Pin
Tamer Oz25-Dec-08 20:37
Tamer Oz25-Dec-08 20:37 
GeneralRe: Saving file using WebBrowser control Pin
Brandon X.29-Dec-08 21:26
Brandon X.29-Dec-08 21:26 
Questioncapture screenshot without current window Pin
James_Zhang25-Dec-08 20:15
James_Zhang25-Dec-08 20:15 
AnswerRe: capture screenshot without current window Pin
Tamer Oz25-Dec-08 20:29
Tamer Oz25-Dec-08 20:29 
GeneralRe: capture screenshot without current window Pin
Brandon X.29-Dec-08 20:44
Brandon X.29-Dec-08 20:44 
Questionxml? Pin
dec8225-Dec-08 19:18
dec8225-Dec-08 19:18 
AnswerRe: xml? Pin
Giorgi Dalakishvili25-Dec-08 19:45
mentorGiorgi Dalakishvili25-Dec-08 19:45 
AnswerRe: xml? Pin
Guffa26-Dec-08 8:25
Guffa26-Dec-08 8:25 
AnswerRe: xml? Pin
Aman Bhullar27-Dec-08 22:43
Aman Bhullar27-Dec-08 22:43 
QuestionC# Web Service Problem. Pin
jolynlim198125-Dec-08 19:14
jolynlim198125-Dec-08 19:14 
AnswerRe: C# Web Service Problem. Pin
leppie26-Dec-08 7:50
leppie26-Dec-08 7:50 

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.