473,486 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Drag and Dropping subclassed controls

I have a custom control called PageBanner which is compiled into a DLL and
then put into the toolbox. It shows like I would expect it to in the
toolbox, and I can drag and drop it onto a form. However, instead of getting
the control on the form, I get nothing. No error message, no control. Yet
there are other times where it does drop on the form as expected.

I have tried recompiling the dll with the control and readding it to the
toolbox, and still, nothing. It'w become quite frustrating. I suspect that
there is something wrong with the code of the control which prevents it from
appearing properly, but I don't know what the problem is. There are no
compile error, nor errors at runtime on the forms that I do get it to drop
onto.

This same issue is now happening with other controls in the same classlib.
These controls are simple subclasses of the basic controls. Again, what
happens is that when I attempt to drag and drop them onto a form, the
controls doesn't drop onto the form. This makes these subclasses unusable
except in written code.

Any advice would be appreciated.

Greg

--
Greg Gum
Nov 17 '05 #1
1 1553
OK, so here is how I solved problems with the toolbox and subclassed
controls: Put them in there own solution/project. Then add the resulting dll
to the toolbox. No problems after that.

This took quite some time to isolate.

Greg
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1176
by: Sam | last post by:
Hi there, I have a problem with dragging and dropping a node from one tree to another. I can drag and drop a node in T1 but not from T2 to T1. I have AllowDrop of T1 = true but for T2 = false...
3
1557
by: EdB | last post by:
I am trying to mimic a behviour and obviously having some trouble with it. Open up two Windows Explorer windows. Select a file in (1) and drag it to a folder in (2). Prior to dropping it, the...
6
891
by: John E. Fox | last post by:
Dear All, I am running Access 97 and I suspect that drag and drop is not supported ( or at least I can't do it! ) Is this supported in any of the later Access versions? I don't particluarly...
1
371
by: Jon Cosby | last post by:
I need an event handler for dragging the cursor on a PictureBox. The existing events only include handlers for dragging and dropping objects over the controls. I'm trying to use the MouseDown and...
1
3246
by: Ed Sutton | last post by:
I am looking for a WinForms drag and drop example that shows how to implement dragging from a WinForm treeView and dropping on another application. I have drag & drop working from within the...
1
2286
by: SteveDouglas | last post by:
Hi all, I am currently writing an application in VB.NET that has a lot of controls (treeviews/listviews/labels and so forth) that represent "things" that need to be draggable from place to place,...
0
1258
by: jongwoonlee | last post by:
Hi, I don't have much experience in c# .net, so please bear with me. I would like to have some advice if possible. the goal is 1. there are several user defined(maybe the existing common...
0
1707
by: Truevision .Net | last post by:
Hi, I have a problem with drag and drop functionality when it comes to dropping pictures from sources like for example internet explorer and the webbrowser control. Dragging and dropping from...
16
11769
by: John | last post by:
I am looking for VBA code that will work with Access 2003 to enable dragging and dropping a file/folder name from Windows XP Explorer into an Access form's text box. This is a common functionality...
0
7099
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7319
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4864
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3069
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.