Solved

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

Posted on 2014-11-03
3
214 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

786 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