473,738 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
+ 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 1566
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
1207
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 since I want to allow dropping to T1 only. What happens is that when I drag a node in T1 over nodes in T1, this works fine and the sign of the drag is there, and I can drop it fine. On the other hand, when I drag a node from T2 into T1, the sign looks...
3
1575
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 now "target" folder highlights as selected, confirming to the user that that is where it's going. The best I can do is get the Arrow with a dotted rectangle below it and then highlight the target AFTER the drop has been made. For information...
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 want to upgrade as our system is fine but it would be nice to be able to drag and drop data between fields.
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 MouseUp handlers as below, but it never gets out of the while loop. this.PicBox.MouseDown += new MouseEventHandler(this.StartMapDrag); this.PicBox.MouseUp += new MouseEventHandler(this.EndMapDrag); private void StartMapDrag(object sender,...
1
3260
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 treeView. Example Use Cases: 1 - Dragging and dropping a file on an Outlook email message to add a file attachment 2 - Dragging and dropping a file on the Windows Explorer to copy a file
1
2309
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, including between controls and windows. In the past when I've implemented Drag and Drop in other projects, I've always passed the item being dragged (for example the listviewitem or the treenode) to the DoDragDrop and then retrieved it in the...
0
1275
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 button control can be imported and utilized) common controls(like toolbox, e.g., box1, box2, box3, - would be better if they are shrinked shape, will be all rectangular shape though, of the actual structured memeber
0
1717
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 picturebox to picturebox works just fine. This part of the program is basically that it navigates to a page in a webbrowser control and on this page there are several pictures to chose from. I want to drag and drop one of them to a picturebox and
16
11841
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 that most Windows programs have, so I'm suprised it's not easier to implement in Access/VBA. Through Google, I found two VB6 examples and one VBA example on the Access Web written by Dev Ashish. The VB6 examples used loops to keep checking...
0
9473
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9259
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6750
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4824
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
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 we have to send another system
2
2744
muto222
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.