Thanks. I already have a look on Control.MousePosition. I can get the mouse position but i can't drop it at the specific location. All example that i found is: 1. Get the drag item detail and index when drag. 2. Get the mouse position when drop. 3. Base on mouse position, the application convert the mouse position to index. Every index represent a rectangle. Any point in the rectangle will use same index. 4. The item will insert at the rectangle represent by the index. The function that i found all will draw or insert picture base on index and not actual mouse position. It need to pass in index and not mouse position. So, anyone have any suggestion? Regards, Pei Yang
Low Pei Yang
Posts
-
Drag and drop to mouse point location -
Drag and drop to mouse point locationHi I would like to drag my contact(in icon view) to any location point by mouse. The behavior is same as icon view, without auto arrange and without align to grid in window explorer. I found all drag and drop example use index to represent location and the drop is to nearest location(by index). Anyone know how to implement it? Thanks first. Regards, PeiYang
-
Interprocess Communication problemsThanks a lot. It is the best solution that i found. I will try on it later when i finish other feature.Thanks. Regards, PeiYang
-
Interprocess Communication problemsI have an application (Application A) which will launch another application (Application B) by passing some arguments in same machine. One of the argument is language use in Application A. When Application A run in Italian.lang, then Application B will launched in Italian.lang as well. Now, if Application A change language to English.lang, then running Application B need to change language to English as well. So i decide to use some inter-process communication method to solve this problem. I have limited time to do this changes. Application A will send notice to Application B when change language. Application B just need to listen to Application A. If possible i would like to have 2 way communication to adapt future change request. What method is suit with my project? Pipe or socket? Or any other method suit for it?
-
Drag and drop in virtual mode problemsHi, I need to do drap and drop in virtual mode. 1. I use virtual mode to display large number of contact in icon view in my application. Currently my application need to support drag and drop. I can't found any solution. Is that anyway to do so? 2. If i want to drag and drop a list to any location (not align to grid), how can i implement it? Hope some one can help me to solve this problem. If can provide me some example to refer. Thanks. Regards, PeiYang