vincentchang
Newcomer
- Joined
- Oct 7, 2005
- Messages
- 6
Hi All,
I just find a problem using drag & drag and ShowDialog problem in Visual Studio 2003.
In my form, I add DragDrop method:
private void Form11_DragDrop(object sender, System.Windows.Forms.DragEventArgs e)
{
if(e.Data.GetDataPresent(DataFormats.FileDrop))
{
using(Form f1 = new Form10())
{
f1.ShowDialog(this);
}
}
}
Then I drag a file from Windows Explorer to the form and Form10 opens as expected. However, when I switch to Windows Explorer, I can't use the Windows Explorer as the focus is on Form10. If I close Form10, then the Windows Explorer can be reached and used again.
Can anyone help me to solve the above problem?
Many Thanks,
Vincent
I just find a problem using drag & drag and ShowDialog problem in Visual Studio 2003.
In my form, I add DragDrop method:
private void Form11_DragDrop(object sender, System.Windows.Forms.DragEventArgs e)
{
if(e.Data.GetDataPresent(DataFormats.FileDrop))
{
using(Form f1 = new Form10())
{
f1.ShowDialog(this);
}
}
}
Then I drag a file from Windows Explorer to the form and Form10 opens as expected. However, when I switch to Windows Explorer, I can't use the Windows Explorer as the focus is on Form10. If I close Form10, then the Windows Explorer can be reached and used again.
Can anyone help me to solve the above problem?
Many Thanks,
Vincent