Click here to Skip to main content
16,007,504 members
Home / Discussions / C#
   

C#

 
GeneralRe: Creating a new user control using decorator pattern Pin
Ennis Ray Lynch, Jr.18-Jun-10 9:09
Ennis Ray Lynch, Jr.18-Jun-10 9:09 
AnswerRe: Creating a new user control using decorator pattern Pin
T M Gray18-Jun-10 8:33
T M Gray18-Jun-10 8:33 
GeneralRe: Creating a new user control using decorator pattern Pin
Berlus18-Jun-10 11:07
Berlus18-Jun-10 11:07 
GeneralRe: Creating a new user control using decorator pattern [modified] Pin
Berlus18-Jun-10 11:09
Berlus18-Jun-10 11:09 
GeneralRe: Creating a new user control using decorator pattern Pin
DaveyM6918-Jun-10 11:14
professionalDaveyM6918-Jun-10 11:14 
GeneralRe: Creating a new user control using decorator pattern Pin
Berlus18-Jun-10 11:18
Berlus18-Jun-10 11:18 
GeneralRe: Creating a new user control using decorator pattern Pin
Luc Pattyn18-Jun-10 11:58
sitebuilderLuc Pattyn18-Jun-10 11:58 
GeneralRe: Creating a new user control using decorator pattern Pin
T M Gray18-Jun-10 11:41
T M Gray18-Jun-10 11:41 
That isn't what you are trying to do. Adding a scrollbar to a window doesn't change anything about the underlying functionality of the window. How the window is closed, moved, z-ordered etc. all remain intact. Changing the methodology a progress bar uses to determine the amount of progress is a fundamental change to the existing underlying functionality, not an addition. Adding a user preference for the color of the progress bar would be more of a decorator.

I see from one of your other responses that it is a 3rd party control you are dealing with. Decorator pattern seems to be what you want only because you can't do it with subclassing because you don't have the source to do it. You are shoehorning your design requirement into a pattern based on other external factors.

Why are you using a control that doesn't do what you want it to?
GeneralRe: Creating a new user control using decorator pattern Pin
Berlus18-Jun-10 12:17
Berlus18-Jun-10 12:17 
Questionalways visible splash screen Pin
Jassim Rahma18-Jun-10 6:54
Jassim Rahma18-Jun-10 6:54 
AnswerRe: always visible splash screen Pin
Henry Minute18-Jun-10 7:11
Henry Minute18-Jun-10 7:11 
GeneralRe: always visible splash screen Pin
Luc Pattyn18-Jun-10 8:18
sitebuilderLuc Pattyn18-Jun-10 8:18 
GeneralRe: always visible splash screen Pin
Henry Minute18-Jun-10 8:20
Henry Minute18-Jun-10 8:20 
AnswerRe: always visible splash screen Pin
Muammar©18-Jun-10 8:06
Muammar©18-Jun-10 8:06 
Questiondetermine sql server 2008 express size Pin
Jassim Rahma18-Jun-10 6:12
Jassim Rahma18-Jun-10 6:12 
AnswerRe: determine sql server 2008 express size Pin
dan!sh 18-Jun-10 6:24
professional dan!sh 18-Jun-10 6:24 
AnswerRe: determine sql server 2008 express size Pin
Henry Minute18-Jun-10 7:13
Henry Minute18-Jun-10 7:13 
GeneralRe: determine sql server 2008 express size Pin
Jassim Rahma19-Jun-10 5:20
Jassim Rahma19-Jun-10 5:20 
GeneralRe: determine sql server 2008 express size Pin
Henry Minute19-Jun-10 5:45
Henry Minute19-Jun-10 5:45 
QuestionConsole is showing up with GUI Pin
muteb18-Jun-10 5:03
muteb18-Jun-10 5:03 
AnswerRe: Console is showing up with GUI Pin
Luc Pattyn18-Jun-10 5:20
sitebuilderLuc Pattyn18-Jun-10 5:20 
GeneralRe: Console is showing up with GUI Pin
muteb18-Jun-10 5:22
muteb18-Jun-10 5:22 
AnswerRe: Console is showing up with GUI Pin
PIEBALDconsult18-Jun-10 6:10
mvePIEBALDconsult18-Jun-10 6:10 
GeneralRe: Console is showing up with GUI Pin
muteb18-Jun-10 18:51
muteb18-Jun-10 18:51 
QuestionFile Upload Pin
kalyan_vb18-Jun-10 4:37
kalyan_vb18-Jun-10 4:37 

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.