???? ID: 307966 - ????? ???????: 04 ?????? 2010 - ??????: 2.0 ????? ??? ????? C# ????????? ??? ?????-????-????? ??????????? ?????? ???? ?? ??? ???? ????
?? ????? ?????????? ???? ??? ??? ?? ??? ?? ??? ????????? ????????? ???? ?? ?? ????? ???? ????? C# ????????? ??? ?????-????-????? ??????????? ?????? ???? ?? ??? ???? ????? AListBox???????? ????? ?????-????-????? ????????? ?? ?????? ?? ??? ??? ????? ???? ???? ??? ???????????? ???? outlines ???????? ?????????, ??????????, ??????? ??????, ?? ???? ???? ???:
Steps to Build the SampleTheListBoxcontrol provides two drag-and-drop events that you need to handle:DragEnter, ??DragDrop. TheDragEnterevent occurs when you drag an object within the bounds of the control and is used to determine whether the object that is being dragged is one that you want to allow to be dropped on the control. You handle this event for cases in which a file or files are dragged to the control. This allows the appropriate icon to be displayed when the object is dragged over the control, depending on the object that is being dragged. TheDragDropevent occurs when the object that is being dragged has been released on the control. You handle this event to retrieve the object. The????:object is used to retrieve the data.The????:object'sGetDatamethod returns an array of strings that contain the full path names of the files that were dragged to theListBox???????? ??? ?????? ??????? ?? ???????? whatever ??? ???? ?? ??? ?? ?? ????? ?? ?? ??????? ?? ????? ?? ????? ?????? ?? ???, ?? ??? ???? ?? ????? ?? ???? ???System.IO??? ????? ????? ?? ??????? ?? ????? ?? ??? ??????? ?? ?? ????, ?? ???? ?? ????? ?? ??? ??????? ?? ????????? ?????? ?? ?????? ???, ?? ??? ?????? ???? ?? ?? ??? ????? ??????? ?? ???ListBox???????? ??? ????? ??? ????? C# ????????? ??? ?????-????-????? ??????????? ??????, ?? ????? ?? ???? ????:
?????????? ??????? ?? ???, ????? Microsoft ?????? ??????? (MSDN) ??? ???? ?????: Control.DragEnter ????? (VS.71) http://MSDN.Microsoft.com/en-us/library/SYSTEM.Windows.forms.control.dragenter .aspx (http://msdn.microsoft.com/en-us/library/system.windows.forms.control.dragenter(vs.71).aspx) Control.DragDrop ????? (VS.71) http://MSDN.Microsoft.com/en-us/library/SYSTEM.Windows.forms.control.dragdrop .aspx (http://msdn.microsoft.com/en-us/library/system.windows.forms.control.dragdrop(vs.71).aspx) ???? ???? ???? ??:
???? ?????? ??????????????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??. ?????????? ?? ??????? ????????? ??????? ??:307966
(http://support.microsoft.com/kb/307966/en-us/
)
| ???? ?????? ???? ?????? ??????
????????? ?????? ??????? ???????? ??????
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email

????? ?? ???? ????
