troubleshooting Question

How do I change the Drag-Once label type for databinding in the Windows Forms designer?

Avatar of jeshbr
jeshbr asked on
.NET Programming
17 Comments1 Solution377 ViewsLast Modified:
I use C# and Winforms for many projects.  I usually databind to my business objects.  I have my own and 3rd party controls that I bind to.  I changed/added the custom controls to the associated datatypes with no problems.  Now when I drag out an object property from the data sources window it gives me my bound custom control and a System.Windows.Forms.Label control.  I want to replace the label with my own type.  I cannot find anywhere to set this.  I should be able to be changed I would think.  Anyone know if it is possible?

Ex.

Default (No Custom Controls)
----------------------------------------------------------------------
CustomerEntity.Name:
        System.Windows.Forms.Label nameLabel;
        System.Windows.Forms.TextBox nameTextBox;

Current (With Custom Controls)
-----------------------------------------------------------------------
CustomerEntity.Name:
        System.Windows.Forms.Label nameLabel;
        Custom.Windows.Forms.MyTextBox nameMyTextBox;

Wanted
--------------------------------------------------------------------------
CustomerEntity.Name:
        Custom.Windows.Forms.MyLabel nameMyLabel;
        Custom.Windows.Forms.MyTextBox nameMyTextBox;
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 17 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros