Evgenios1 Δημοσ. 2 Ιανουαρίου 2009 Δημοσ. 2 Ιανουαρίου 2009 Γεια σας , μηπως ξερει κανεις πως θα μπορεσω να "ενεργοποιισω" ενα στοιχειο(πχ textblock) (.net 3.5) ετσι ωστε να μπορει να δεχετε drop item (πχ οταν πετας πανω στο nodepad.exe ενα αρχειο , τοτε στο ανηγει , δλδ περνει τη διευθηση του) ΥΓ: δεν εχω ηδεα πως θα το ψαξω στο blackle.com
afnman Δημοσ. 6 Ιανουαρίου 2009 Δημοσ. 6 Ιανουαρίου 2009 Ελπιζω να σε βοηθησει αυτο... http://msdn.microsoft.com/en-us/library/system.windows.forms.control.allowdrop.aspx
Evgenios1 Δημοσ. 6 Ιανουαρίου 2009 Μέλος Δημοσ. 6 Ιανουαρίου 2009 αναφερετε σε dot 2, και σε DragOver (διλαδη στη μετακηνηση του παραθυρου ή του αντικειμενου ,καμια σχεση) -----Προστέθηκε 6/1/2009 στις 03 : 25 : 41----- Εγω θελω να πιανω με το ποντικι ενα αρχειο να το σειρω πανω στο παραθυρο μου (πχ) , και οταν το αφινω(το αρχειο) να περνω την Uri του πχ G:\img.jpg
afnman Δημοσ. 6 Ιανουαρίου 2009 Δημοσ. 6 Ιανουαρίου 2009 Νομιζα σε ενδιαφερει κατι τετοιο..... "The following code example enables the user to drag an image or image file onto the form, and have it be displayed at the point on it is dropped. The OnPaint method is overridden to repaint the image each time the form is painted; otherwise the image would only persist until the next repainting. The DragEnter event-handling method determines the type of data being dragged into the form and provides the appropriate feedback. The DragDrop event-handling method displays the image on the form, if an Image can be created from the data. Because the DragEventArgs..::.X and DragEventArgs..::.Y values are screen coordinates, the example uses the PointToClient method to convert them to client coordinates...." Το παραδειγμα ειναι μεσα στο link που σου εδωσα.....
Evgenios1 Δημοσ. 6 Ιανουαρίου 2009 Μέλος Δημοσ. 6 Ιανουαρίου 2009 Νομιζα σε ενδιαφερει κατι τετοιο..... "The following code example enables the user to drag an image or image file onto the form, and have it be displayed at the point on it is dropped. The OnPaint method is overridden to repaint the image each time the form is painted; otherwise the image would only persist until the next repainting. The DragEnter event-handling method determines the type of data being dragged into the form and provides the appropriate feedback. The DragDrop event-handling method displays the image on the form, if an Image can be created from the data. Because the DragEventArgs..::.X and DragEventArgs..::.Y values are screen coordinates, the example uses the PointToClient method to convert them to client coordinates...." Το παραδειγμα ειναι μεσα στο link που σου εδωσα..... αλλο πραμα ... και ειναι dot 2 forms... στη dot 3 Windows δεν υπαρχει λογοσ να το κανεις αυτο, διοτη δουλευεις με Margin δλδ 200 pixel απο πανω κλπ
Προτεινόμενες αναρτήσεις
Αρχειοθετημένο
Αυτό το θέμα έχει αρχειοθετηθεί και είναι κλειστό για περαιτέρω απαντήσεις.