|
-
May 20th, 2002, 10:53 PM
#1
UserControl Drag n Drop Snag
Hi,
I can dragdrop my custom control anywhere on the form as long as I move it a fair distance. If I try moving it a little bit, then of course it drops back to where it began.
I understand I can remedy that by adding a Dragdrop event to my usercontrol using RaiseEvent and Public Event lines. I can do that except that for the following complications.
1. My control only has shapes which does not support dragdrop events.
2. So, I put all of these shapes in a picture box because this box has the dragdrop event.
3. I do everything correctly, but there is one major snag.
Apparently, I cannot pass a Private Control Source such as a picture box control in my user control to a public event. I can add mousedown events okay because it does not pass the private control source.
This is the final step to my pneumatic cylinder control functioning fully.
I appreciate any input.
Thanks,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|