Click here to Skip to main content
15,921,643 members
Home / Discussions / C#
   

C#

 
AnswerRe: Web Browser.How to open new window in existent opened browser. Pin
Aman Bhullar26-Dec-08 5:47
Aman Bhullar26-Dec-08 5:47 
AnswerRe: Web Browser.How to open new window in existent opened browser. Pin
Lev Danielyan26-Dec-08 7:20
Lev Danielyan26-Dec-08 7:20 
GeneralRe: Web Browser.How to open new window in existent opened browser. Pin
aleXXXka27-Dec-08 1:13
aleXXXka27-Dec-08 1:13 
QuestionmenuItem with Shortcut and Icon Pin
mirko8626-Dec-08 4:23
mirko8626-Dec-08 4:23 
GeneralRe: menuItem with Shortcut and Icon Pin
Luc Pattyn26-Dec-08 4:27
sitebuilderLuc Pattyn26-Dec-08 4:27 
GeneralRe: menuItem with Shortcut and Icon Pin
mirko8626-Dec-08 4:30
mirko8626-Dec-08 4:30 
GeneralRe: menuItem with Shortcut and Icon Pin
Luc Pattyn26-Dec-08 4:39
sitebuilderLuc Pattyn26-Dec-08 4:39 
GeneralRe: menuItem with Shortcut and Icon [modified] Pin
mirko8626-Dec-08 4:47
mirko8626-Dec-08 4:47 
GeneralRe: menuItem with Shortcut and Icon Pin
mirko8626-Dec-08 5:45
mirko8626-Dec-08 5:45 
QuestionHow to access a comboBox in dataGridView? Pin
Admin88726-Dec-08 2:25
Admin88726-Dec-08 2:25 
AnswerRe: How to access a comboBox in dataGridView? Pin
Wendelius26-Dec-08 7:26
mentorWendelius26-Dec-08 7:26 
GeneralRe: How to access a comboBox in dataGridView? Pin
Admin88726-Dec-08 21:03
Admin88726-Dec-08 21:03 
GeneralRe: How to access a comboBox in dataGridView? Pin
Wendelius26-Dec-08 22:09
mentorWendelius26-Dec-08 22:09 
QuestionHow to use a self-made dll in a C# project from a different location. Pin
Joshua12332126-Dec-08 0:14
Joshua12332126-Dec-08 0:14 
AnswerRe: How to use a self-made dll in a C# project from a different location. Pin
Giorgi Dalakishvili26-Dec-08 0:28
mentorGiorgi Dalakishvili26-Dec-08 0:28 
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 

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.