Προς το περιεχόμενο

scroll & drop σε .net 3.5 στοιχεια


Evgenios1

Προτεινόμενες αναρτήσεις

Δημοσ.

Γεια σας , μηπως ξερει κανεις πως θα μπορεσω να "ενεργοποιισω" ενα στοιχειο(πχ textblock) (.net 3.5) ετσι ωστε να μπορει να δεχετε drop item (πχ οταν πετας πανω στο nodepad.exe ενα αρχειο , τοτε στο ανηγει , δλδ περνει τη διευθηση του)

 

ΥΓ: δεν εχω ηδεα πως θα το ψαξω στο blackle.com

Δημοσ.

αναφερετε σε dot 2, και σε DragOver (διλαδη στη μετακηνηση του παραθυρου ή του αντικειμενου ,καμια σχεση)

 

 

-----Προστέθηκε 6/1/2009 στις 03 : 25 : 41-----

 

 

Εγω θελω να πιανω με το ποντικι ενα αρχειο να το σειρω πανω στο παραθυρο μου (πχ) , και οταν το αφινω(το αρχειο) να περνω την Uri του πχ G:\img.jpg

Δημοσ.

Νομιζα σε ενδιαφερει κατι τετοιο.....

 

"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 που σου εδωσα.....

Δημοσ.
Νομιζα σε ενδιαφερει κατι τετοιο.....

 

"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 απο πανω κλπ

Αρχειοθετημένο

Αυτό το θέμα έχει αρχειοθετηθεί και είναι κλειστό για περαιτέρω απαντήσεις.

  • Δημιουργία νέου...