Solved

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

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Iteration Help (Asp.net VB) 5 24
VB.Net. Reading xml value 6 30
Vb.net threads keep increasing 2 37
VB.NET Application Installation with sqlserver 8 32
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

820 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