473,323 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Extra Property on Controls -- IExtenderProvider vs Inherited Class

Hello,

I'm migrating a VB6 app to .Net and of course it uses the DataField
property for databinding, which of course isn't available under .Net.

On several forms it also uses the Tag property to "group" controls for
display/enabling, so I can't just switch from DataField to Tag.

Which would you consider the better practice -- to create a subclass of
the various controls and and the extra property that way, or to use an
IExtenderProvider class to add it?

(Of course the 3rd option is to simply use a naming convention to
"hold" the extra information, but I don't like that).

Any suggestions? Comments?

--
J.B. Moreno
Jul 20 '08 #1
0 882

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

Similar topics

8
by: TS | last post by:
I am trying to get set a property of a control on the inherited class from base class. I imagine i have to use reflection, so could someone give me the code to do it? something like this?...
0
by: Jim | last post by:
I am having some trouble with user controls and would appreciate any input / advice on where to go with this... :) 1. The first problem, and perhaps the root of the others, is that I have...
4
by: Paradox | last post by:
Hey, I'm trying to figure out what situations call for the use of a derived form control such as: public class myListBox : System.Windows.Forms.ListBox and what situations call for the use...
8
by: JackRazz | last post by:
Is it possible to add an extended property to components like I can with controls via IExtenderProvider? JackRazz
0
by: tomislav.bartolin | last post by:
Hi, I have a EditWindow class which inherits the System.Windows.Form class and has a public property named EntityType. I have created a custom UITypeEditor for this property and this works fine....
0
by: Mark Collard | last post by:
When you add a ToolTip component to a Form (or UserControl) the other controls on the form display a ToolTip property in the property grid. This is because it implements the IExtenderProvider...
1
by: Don | last post by:
I'm getting the following exception displayed in the task list at design time for my project: "Code generation for property 'Controls' failed. Error was: 'Object reference not set to an...
0
by: =?Utf-8?B?VHJpc3RlbiBGaWVsZGluZw==?= | last post by:
I've added an IExtenderProvider interface to a class called RadioButtonGroupPanel (which derives from Panel) and have added the attribute called . I've defined the following members: public...
5
by: jehugaleahsa | last post by:
Hello: I am sure this question comes up a lot. I need to disable the controls on my Windows forms so that when the BindingSource is empty some the controls bound to it will be disabled. This...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.