Click here to Skip to main content
15,908,455 members
Home / Discussions / C#
   

C#

 
GeneralRe: Newbie Question - Inheirtance - Controls Pin
Marc Clifton15-May-05 16:04
mvaMarc Clifton15-May-05 16:04 
Wackatronic1 wrote:
I want to have a .Tag property on all controls

Erm, Tag is already a property of Control, so there's no need to derive from it. And, if you want to add a property that is available to all controls, you're MUCH better off implementing it using the IExtenderProvider interface, like the way the ToolTip class works. (And yes, for IExtenderProvider, I'm going to tell you to read the documentation Smile | :) )

The advantage with IExtenderProvider is that you can still use the controls in the designer, and the new property shows up when you drop your extender provider onto the form.

Marc

MyXaml
Advanced Unit Testing
YAPO
GeneralCheckedListBox Pin
myNameIsRon15-May-05 14:37
myNameIsRon15-May-05 14:37 
GeneralRe: CheckedListBox Pin
Yulianto.15-May-05 14:52
Yulianto.15-May-05 14:52 
GeneralRe: CheckedListBox Pin
myNameIsRon18-May-05 20:16
myNameIsRon18-May-05 20:16 
GeneralRe: CheckedListBox Pin
Yulianto.18-May-05 20:27
Yulianto.18-May-05 20:27 
GeneralRe: CheckedListBox Pin
myNameIsRon19-May-05 5:36
myNameIsRon19-May-05 5:36 
GeneralRe: CheckedListBox Pin
Yulianto.19-May-05 14:18
Yulianto.19-May-05 14:18 
GeneralStore multiple values Pin
Bahadir Cambel15-May-05 12:21
Bahadir Cambel15-May-05 12:21 
GeneralRe: Store multiple values Pin
Marc Clifton15-May-05 14:13
mvaMarc Clifton15-May-05 14:13 
GeneralRe: Store multiple values Pin
Bahadir Cambel16-May-05 11:39
Bahadir Cambel16-May-05 11:39 
GeneralRe: Store multiple values Pin
Marc Clifton16-May-05 12:20
mvaMarc Clifton16-May-05 12:20 
GeneralRe: Store multiple values Pin
Bahadir Cambel16-May-05 23:59
Bahadir Cambel16-May-05 23:59 
GeneralChange html output with behind page code. Pin
nit11515-May-05 12:03
nit11515-May-05 12:03 
GeneralRe: Change html output with behind page code. Pin
Werdna16-May-05 5:02
Werdna16-May-05 5:02 
GeneralSelection Tool Pin
Moh'd Bahrani15-May-05 10:39
Moh'd Bahrani15-May-05 10:39 
GeneralRe: Selection Tool Pin
Marc Clifton15-May-05 14:08
mvaMarc Clifton15-May-05 14:08 
GeneralRe: Selection Tool Pin
Moh'd Bahrani16-May-05 5:15
Moh'd Bahrani16-May-05 5:15 
QuestionDoes anyone know a C# payroll program? Pin
diabolusgorgon15-May-05 10:11
diabolusgorgon15-May-05 10:11 
AnswerRe: Does anyone know a C# payroll program? Pin
Marc Clifton15-May-05 14:02
mvaMarc Clifton15-May-05 14:02 
GeneralRe: Does anyone know a C# payroll program? Pin
exhaulted16-May-05 4:29
exhaulted16-May-05 4:29 
Generallistbox: delete multiple selection Pin
bouli15-May-05 9:38
bouli15-May-05 9:38 
GeneralRe: listbox: delete multiple selection Pin
Marc Clifton15-May-05 13:59
mvaMarc Clifton15-May-05 13:59 
GeneralRe: listbox: delete multiple selection Pin
Gary Perkin16-May-05 2:33
Gary Perkin16-May-05 2:33 
GeneralRe: listbox: delete multiple selection Pin
bouli16-May-05 4:38
bouli16-May-05 4:38 
GeneralAuto Update on Control Pin
RockmanHero200315-May-05 9:21
RockmanHero200315-May-05 9:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.