Solved

VB.net Drag and drop onto panel where RichTextBox in the way

Posted on 2014-11-03
3
205 Views
Last Modified: 2014-11-05
Hi

I have a form with a panel that has multiple text boxes. I have set up a drag_drop event
for the panel that accepts data dragged there. This works fine but I want it to work
even if the drop occurs over one of the text boxes on the panel.
Is this possible?
0
Comment
Question by:murbro
3 Comments
 
LVL 12

Assisted Solution

by:ktaczala
ktaczala earned 250 total points
ID: 40421366
can you trigger the corresponding drag event of the panel when the corresponding drag event of the textbox fires?
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 250 total points
ID: 40423479
The same event method can receive events from more than one control. Simply add an handle for you RichTextBox at the end of the declaration for you panel event:

Private Sub Panel1_DragDrop(sender As Object, e As DragEventArgs) Handles Panel1.DragDrop, RichTextBox1.DragDrop

Open in new window

0
 

Author Closing Comment

by:murbro
ID: 40423820
Thanks very much
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now