Click here to Skip to main content
15,896,417 members
Home / Discussions / C#
   

C#

 
Questionhow can i create a License for my applications Pin
keroed_edmond5-Aug-06 9:40
keroed_edmond5-Aug-06 9:40 
AnswerRe: how can i create a License for my applications Pin
Rob Graham5-Aug-06 9:54
Rob Graham5-Aug-06 9:54 
QuestionQuickTime movie frame extract with C# Pin
Phoen255-Aug-06 9:02
Phoen255-Aug-06 9:02 
AnswerRe: QuickTime movie frame extract with C# Pin
eggie55-Aug-06 20:46
eggie55-Aug-06 20:46 
QuestionC# Delete database records without SQL text? Pin
DannyAdler5-Aug-06 8:19
DannyAdler5-Aug-06 8:19 
AnswerRe: C# Delete database records without SQL text? Pin
Rob Graham5-Aug-06 9:18
Rob Graham5-Aug-06 9:18 
QuestionOverriding Inheritance??? Pin
Shy Agam5-Aug-06 5:27
Shy Agam5-Aug-06 5:27 
AnswerRe: Overriding Inheritance??? Pin
Colin Angus Mackay5-Aug-06 5:53
Colin Angus Mackay5-Aug-06 5:53 
You are right, you cannot do that. What I would probably do is design it this way:

I'd create a number of Shaped... classes, e.g. ShapedButton, ShapedPanel, etc. These would inherit from the various based classes (Button, Panel, etc.)

The "Shaped" functionality would go into a separate class of its own that contains the functionality that you need. Then from the various control subclasses you created earlier you would call into the Shaped class.

e.g.

public class ShapedStrategy
{
    public void SomeShapedFunctionality(Control shapedControl)
    {
        // Do stuff.
    }
}
 
public class ShapedButton : Button
{
    private ShapedStrategy shapedStrategy;
 
    public override void OnPaint()
    {
        shapedStrategy.ShapedPaint(this);
    }
}


Hopefully that might give you some ideas.


GeneralRe: Overriding Inheritance??? Pin
Shy Agam5-Aug-06 6:49
Shy Agam5-Aug-06 6:49 
QuestionListView LargeIcon problem Pin
loneferret5-Aug-06 3:43
loneferret5-Aug-06 3:43 
AnswerRe: ListView LargeIcon problem Pin
mav.northwind5-Aug-06 10:37
mav.northwind5-Aug-06 10:37 
GeneralRe: ListView LargeIcon problem Pin
loneferret7-Aug-06 1:42
loneferret7-Aug-06 1:42 
GeneralRe: ListView LargeIcon problem Pin
mav.northwind7-Aug-06 6:37
mav.northwind7-Aug-06 6:37 
GeneralRe: ListView LargeIcon problem Pin
mav.northwind11-Aug-06 21:40
mav.northwind11-Aug-06 21:40 
QuestionChange textbox readonly attribute programatically [modified] Pin
Glen Harvy5-Aug-06 3:31
Glen Harvy5-Aug-06 3:31 
AnswerRe: Change textbox readonly attribute programatically Pin
Stefan Troschuetz5-Aug-06 4:07
Stefan Troschuetz5-Aug-06 4:07 
GeneralRe: Change textbox readonly attribute programatically Pin
Glen Harvy5-Aug-06 11:44
Glen Harvy5-Aug-06 11:44 
GeneralRe: Change textbox readonly attribute programatically Pin
stancrm5-Aug-06 18:21
stancrm5-Aug-06 18:21 
GeneralRe: Change textbox readonly attribute programatically Pin
Glen Harvy5-Aug-06 20:28
Glen Harvy5-Aug-06 20:28 
QuestionSerialize to string Pin
peterchen5-Aug-06 3:14
peterchen5-Aug-06 3:14 
AnswerRe: Serialize to string Pin
Judah Gabriel Himango5-Aug-06 10:29
sponsorJudah Gabriel Himango5-Aug-06 10:29 
QuestionCrystal Report Pin
peshawarcoder5-Aug-06 2:47
peshawarcoder5-Aug-06 2:47 
Questionusing assemblies Pin
nesaraja5-Aug-06 1:42
nesaraja5-Aug-06 1:42 
AnswerRe: using assemblies Pin
peterchen5-Aug-06 4:00
peterchen5-Aug-06 4:00 
GeneralRe: using assemblies Pin
nesaraja6-Aug-06 18:45
nesaraja6-Aug-06 18:45 

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.