Click here to Skip to main content
15,923,083 members
Home / Discussions / C#
   

C#

 
AnswerRe: Accessing class properties using foreach or any iteration method Pin
MrWhiteboard22-Jun-10 14:23
MrWhiteboard22-Jun-10 14:23 
QuestionCreat a slideshow program Pin
kienhv_8718-Jun-10 15:48
kienhv_8718-Jun-10 15:48 
AnswerRe: Creat a slideshow program Pin
Roger Wright18-Jun-10 16:00
professionalRoger Wright18-Jun-10 16:00 
AnswerRe: Creat a slideshow program Pin
Richard Andrew x6418-Jun-10 16:17
professionalRichard Andrew x6418-Jun-10 16:17 
AnswerRe: Creat a slideshow program Pin
Luc Pattyn18-Jun-10 16:55
sitebuilderLuc Pattyn18-Jun-10 16:55 
QuestionDisable/Remove 'Move' menu from System Menu Pin
Xmen Real 18-Jun-10 14:46
professional Xmen Real 18-Jun-10 14:46 
AnswerWorkaround Pin
Xmen Real 19-Jun-10 3:21
professional Xmen Real 19-Jun-10 3:21 
QuestionCreating a new user control using decorator pattern Pin
Berlus18-Jun-10 7:36
Berlus18-Jun-10 7:36 
Hello all,

To demonstrate the decorator pattern, many articles gives as an example the ability to extend user controls (e.g. a window) with another ability (e.g. scrollable bar).

I'm trying to use it in winforms and extend the ProgressBar.

I'm building a utility function that copy some files from one network drive to another network drive, and I would like to supply also a progress bar that will show (as accurate as possible) the progress of the copy.

In order to that I want to extend the progress bar with a full amount property, and a sniffing method (supplied by the user, e.g. querying the network adapter), and thus the progress bar would display the size so far divided by the known full amount.

Decorator pattern seems the perfect choice but i can't seems to implement in winforms.

Thanks,
Berlus.
AnswerRe: Creating a new user control using decorator pattern Pin
Ennis Ray Lynch, Jr.18-Jun-10 7:49
Ennis Ray Lynch, Jr.18-Jun-10 7:49 
GeneralRe: Creating a new user control using decorator pattern Pin
Berlus18-Jun-10 8:25
Berlus18-Jun-10 8:25 
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 
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 

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.