Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - DragEnter Does Not Fire?

Reply
 
Old 02-26-2009   #1 (permalink)
Leon_Amirreza


 
 

DragEnter Does Not Fire?

I have a DataGridView on the form with AllowDrop = true when I drag a file
from windows Explorer on DataGridView Mouse Pointer becomes a No Icon And
DragEnter Does not Fire!

It fires when I Initiate a Drag Drop from within the C# Application!

What Should I do?


My System SpecsSystem Spec
Old 02-26-2009   #2 (permalink)
Cor Ligthert[MVP]


 
 

Re: DragEnter Does Not Fire?

Leon,

Can you show us the documentation where is written that you can drag a file
to a to DataGridView (or do you mean an image)?

Cor

"Leon_Amirreza" <r_rahmaty@xxxxxx> wrote in message
news:u6w%23FS$lJHA.4372@xxxxxx
Quote:

>I have a DataGridView on the form with AllowDrop = true when I drag a file
>from windows Explorer on DataGridView Mouse Pointer becomes a No Icon And
>DragEnter Does not Fire!
>
> It fires when I Initiate a Drag Drop from within the C# Application!
>
> What Should I do?
My System SpecsSystem Spec
Old 02-26-2009   #3 (permalink)
Leon_Amirreza


 
 

Re: DragEnter Does Not Fire?

Sorry I dont Get it?
I thought the DragEnter Should get Fired every time I dragged over it no
matter what I drag!?

If no, What should I do then, to get the names of files dragged into my
application from Windows Explorer?

"Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
news:OryzlV$lJHA.1292@xxxxxx
Quote:

> Leon,
>
> Can you show us the documentation where is written that you can drag a
> file to a to DataGridView (or do you mean an image)?
>
> Cor
>
> "Leon_Amirreza" <r_rahmaty@xxxxxx> wrote in message
> news:u6w%23FS$lJHA.4372@xxxxxx
Quote:

>>I have a DataGridView on the form with AllowDrop = true when I drag a file
>>from windows Explorer on DataGridView Mouse Pointer becomes a No Icon And
>>DragEnter Does not Fire!
>>
>> It fires when I Initiate a Drag Drop from within the C# Application!
>>
>> What Should I do?
>
My System SpecsSystem Spec
Old 02-26-2009   #4 (permalink)
Cor Ligthert[MVP]


 
 

Re: DragEnter Does Not Fire?

For sure not use a DataGridView as that is mainly intended for a Database.

A listview like in explorer itself will in my ide be definitly a better
choise.

Cor

"Leon_Amirreza" <r_rahmaty@xxxxxx> wrote in message
news:OWaZ5x$lJHA.1248@xxxxxx
Quote:

> Sorry I dont Get it?
> I thought the DragEnter Should get Fired every time I dragged over it no
> matter what I drag!?
>
> If no, What should I do then, to get the names of files dragged into my
> application from Windows Explorer?
>
> "Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
> news:OryzlV$lJHA.1292@xxxxxx
Quote:

>> Leon,
>>
>> Can you show us the documentation where is written that you can drag a
>> file to a to DataGridView (or do you mean an image)?
>>
>> Cor
>>
>> "Leon_Amirreza" <r_rahmaty@xxxxxx> wrote in message
>> news:u6w%23FS$lJHA.4372@xxxxxx
Quote:

>>>I have a DataGridView on the form with AllowDrop = true when I drag a
>>>file from windows Explorer on DataGridView Mouse Pointer becomes a No
>>>Icon And DragEnter Does not Fire!
>>>
>>> It fires when I Initiate a Drag Drop from within the C# Application!
>>>
>>> What Should I do?
>>
>
My System SpecsSystem Spec
Old 02-26-2009   #5 (permalink)
Leon_Amirreza


 
 

Re: DragEnter Does Not Fire?

Still Problem ramains:
The ListView DragEnter Does not Fire!?
What Should I do?

"Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
news:uRg5uFAmJHA.1184@xxxxxx
Quote:

> For sure not use a DataGridView as that is mainly intended for a Database.
>
> A listview like in explorer itself will in my ide be definitly a better
> choise.
>
> Cor
>
> "Leon_Amirreza" <r_rahmaty@xxxxxx> wrote in message
> news:OWaZ5x$lJHA.1248@xxxxxx
Quote:

>> Sorry I dont Get it?
>> I thought the DragEnter Should get Fired every time I dragged over it no
>> matter what I drag!?
>>
>> If no, What should I do then, to get the names of files dragged into my
>> application from Windows Explorer?
>>
>> "Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
>> news:OryzlV$lJHA.1292@xxxxxx
Quote:

>>> Leon,
>>>
>>> Can you show us the documentation where is written that you can drag a
>>> file to a to DataGridView (or do you mean an image)?
>>>
>>> Cor
>>>
>>> "Leon_Amirreza" <r_rahmaty@xxxxxx> wrote in message
>>> news:u6w%23FS$lJHA.4372@xxxxxx
>>>>I have a DataGridView on the form with AllowDrop = true when I drag a
>>>>file from windows Explorer on DataGridView Mouse Pointer becomes a No
>>>>Icon And DragEnter Does not Fire!
>>>>
>>>> It fires when I Initiate a Drag Drop from within the C# Application!
>>>>
>>>> What Should I do?
>>>
>>
>
My System SpecsSystem Spec
Old 02-26-2009   #6 (permalink)
Cor Ligthert[MVP]


 
 

Re: DragEnter Does Not Fire?

There are samples on Internet how to drag from Explorer to the Listview, in
fact it is the same control


"Leon_Amirreza" <r_rahmaty@xxxxxx> wrote in message
news:ujkJwLAmJHA.1288@xxxxxx
Quote:

> Still Problem ramains:
> The ListView DragEnter Does not Fire!?
> What Should I do?
>
> "Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
> news:uRg5uFAmJHA.1184@xxxxxx
Quote:

>> For sure not use a DataGridView as that is mainly intended for a
>> Database.
>>
>> A listview like in explorer itself will in my ide be definitly a better
>> choise.
>>
>> Cor
>>
>> "Leon_Amirreza" <r_rahmaty@xxxxxx> wrote in message
>> news:OWaZ5x$lJHA.1248@xxxxxx
Quote:

>>> Sorry I dont Get it?
>>> I thought the DragEnter Should get Fired every time I dragged over it no
>>> matter what I drag!?
>>>
>>> If no, What should I do then, to get the names of files dragged into my
>>> application from Windows Explorer?
>>>
>>> "Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
>>> news:OryzlV$lJHA.1292@xxxxxx
>>>> Leon,
>>>>
>>>> Can you show us the documentation where is written that you can drag a
>>>> file to a to DataGridView (or do you mean an image)?
>>>>
>>>> Cor
>>>>
>>>> "Leon_Amirreza" <r_rahmaty@xxxxxx> wrote in message
>>>> news:u6w%23FS$lJHA.4372@xxxxxx
>>>>>I have a DataGridView on the form with AllowDrop = true when I drag a
>>>>>file from windows Explorer on DataGridView Mouse Pointer becomes a No
>>>>>Icon And DragEnter Does not Fire!
>>>>>
>>>>> It fires when I Initiate a Drag Drop from within the C# Application!
>>>>>
>>>>> What Should I do?
>>>>
>>>
>>
>
My System SpecsSystem Spec
Old 02-26-2009   #7 (permalink)
Leon_Amirreza


 
 

Re: DragEnter Does Not Fire?

I have seen many drag drop examples that use DragEnter and its event
argument BUT within the same application!
I havent seen any that uses drag from another App into your .Net App!

could you possibly give an example URL!

"Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
news:uB7DzbAmJHA.500@xxxxxx
Quote:

> There are samples on Internet how to drag from Explorer to the Listview,
> in fact it is the same control
>
>
> "Leon_Amirreza" <r_rahmaty@xxxxxx> wrote in message
> news:ujkJwLAmJHA.1288@xxxxxx
Quote:

>> Still Problem ramains:
>> The ListView DragEnter Does not Fire!?
>> What Should I do?
>>
>> "Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
>> news:uRg5uFAmJHA.1184@xxxxxx
Quote:

>>> For sure not use a DataGridView as that is mainly intended for a
>>> Database.
>>>
>>> A listview like in explorer itself will in my ide be definitly a better
>>> choise.
>>>
>>> Cor
>>>
>>> "Leon_Amirreza" <r_rahmaty@xxxxxx> wrote in message
>>> news:OWaZ5x$lJHA.1248@xxxxxx
>>>> Sorry I dont Get it?
>>>> I thought the DragEnter Should get Fired every time I dragged over it
>>>> no matter what I drag!?
>>>>
>>>> If no, What should I do then, to get the names of files dragged into my
>>>> application from Windows Explorer?
>>>>
>>>> "Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
>>>> news:OryzlV$lJHA.1292@xxxxxx
>>>>> Leon,
>>>>>
>>>>> Can you show us the documentation where is written that you can drag a
>>>>> file to a to DataGridView (or do you mean an image)?
>>>>>
>>>>> Cor
>>>>>
>>>>> "Leon_Amirreza" <r_rahmaty@xxxxxx> wrote in message
>>>>> news:u6w%23FS$lJHA.4372@xxxxxx
>>>>>>I have a DataGridView on the form with AllowDrop = true when I drag a
>>>>>>file from windows Explorer on DataGridView Mouse Pointer becomes a No
>>>>>>Icon And DragEnter Does not Fire!
>>>>>>
>>>>>> It fires when I Initiate a Drag Drop from within the C# Application!
>>>>>>
>>>>>> What Should I do?
>>>>>
>>>>
>>>
>>
>
My System SpecsSystem Spec
Old 02-27-2009   #8 (permalink)
G Himangi


 
 

Re: DragEnter Does Not Fire?

Are you setting AllowDrop=true? Once that is set, using:
e.Effect= DragDropEffects.Copy

in DragEneter handler should work

--------
- G Himangi, LogicNP Software http://www.ssware.com
Shell MegaPack: GUI Controls For Drop-In Windows Explorer like File/Folder
Browsing Functionality (.Net & ActiveX Editions).
EZNamespaceExtensions: Develop namespace extensions rapidly in .Net and
MFC/ATL/C++
EZShellExtensions: Develop all shell extensions,explorer bars and BHOs
rapidly in .Net & MFC/ATL/C++
---------

"Leon_Amirreza" <r_rahmaty@xxxxxx> wrote in message
news:etBrY%23AmJHA.4180@xxxxxx
Quote:

>I have seen many drag drop examples that use DragEnter and its event
>argument BUT within the same application!
> I havent seen any that uses drag from another App into your .Net App!
>
> could you possibly give an example URL!
>
> "Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
> news:uB7DzbAmJHA.500@xxxxxx
Quote:

>> There are samples on Internet how to drag from Explorer to the Listview,
>> in fact it is the same control
>>
>>
>> "Leon_Amirreza" <r_rahmaty@xxxxxx> wrote in message
>> news:ujkJwLAmJHA.1288@xxxxxx
Quote:

>>> Still Problem ramains:
>>> The ListView DragEnter Does not Fire!?
>>> What Should I do?
>>>
>>> "Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
>>> news:uRg5uFAmJHA.1184@xxxxxx
>>>> For sure not use a DataGridView as that is mainly intended for a
>>>> Database.
>>>>
>>>> A listview like in explorer itself will in my ide be definitly a better
>>>> choise.
>>>>
>>>> Cor
>>>>
>>>> "Leon_Amirreza" <r_rahmaty@xxxxxx> wrote in message
>>>> news:OWaZ5x$lJHA.1248@xxxxxx
>>>>> Sorry I dont Get it?
>>>>> I thought the DragEnter Should get Fired every time I dragged over it
>>>>> no matter what I drag!?
>>>>>
>>>>> If no, What should I do then, to get the names of files dragged into
>>>>> my application from Windows Explorer?
>>>>>
>>>>> "Cor Ligthert[MVP]" <Notmyfirstname@xxxxxx> wrote in message
>>>>> news:OryzlV$lJHA.1292@xxxxxx
>>>>>> Leon,
>>>>>>
>>>>>> Can you show us the documentation where is written that you can drag
>>>>>> a file to a to DataGridView (or do you mean an image)?
>>>>>>
>>>>>> Cor
>>>>>>
>>>>>> "Leon_Amirreza" <r_rahmaty@xxxxxx> wrote in message
>>>>>> news:u6w%23FS$lJHA.4372@xxxxxx
>>>>>>>I have a DataGridView on the form with AllowDrop = true when I drag a
>>>>>>>file from windows Explorer on DataGridView Mouse Pointer becomes a No
>>>>>>>Icon And DragEnter Does not Fire!
>>>>>>>
>>>>>>> It fires when I Initiate a Drag Drop from within the C# Application!
>>>>>>>
>>>>>>> What Should I do?
>>>>>>
>>>>>
>>>>
>>>
>>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Need to click twice to fire an Event .NET General
Turtle Creek Fire Vista General
chocolate fire guard... Vista General
FIRE FIRE !!!!!Video Games play over second page Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46