Click here to Skip to main content
15,888,802 members
Home / Discussions / C#
   

C#

 
GeneralBringToFront changes index Pin
James McCutcheon1-Sep-02 20:32
James McCutcheon1-Sep-02 20:32 
QuestionGraphic engine for .NET anyone? Pin
Alastair Stell1-Sep-02 16:01
Alastair Stell1-Sep-02 16:01 
AnswerRe: Graphic engine for .NET anyone? Pin
David Stone1-Sep-02 17:58
sitebuilderDavid Stone1-Sep-02 17:58 
AnswerRe: Graphic engine for .NET anyone? Pin
Rickard Andersson201-Sep-02 20:47
Rickard Andersson201-Sep-02 20:47 
AnswerRe: Graphic engine for .NET anyone? Pin
Stephane Rodriguez.1-Sep-02 21:20
Stephane Rodriguez.1-Sep-02 21:20 
AnswerRe: Graphic engine for .NET anyone? Pin
leppie2-Sep-02 5:24
leppie2-Sep-02 5:24 
GeneralnBASS updated Pin
leppie1-Sep-02 10:23
leppie1-Sep-02 10:23 
GeneralRe: nBASS updated Pin
James T. Johnson1-Sep-02 11:43
James T. Johnson1-Sep-02 11:43 
GeneralRe: nBASS updated Pin
leppie1-Sep-02 11:54
leppie1-Sep-02 11:54 
GeneralRichTextBox Pin
Iulian Serban1-Sep-02 8:11
Iulian Serban1-Sep-02 8:11 
GeneralRe: RichTextBox Pin
Mazdak1-Sep-02 9:40
Mazdak1-Sep-02 9:40 
GeneralRe: RichTextBox Pin
Iulian Serban1-Sep-02 22:39
Iulian Serban1-Sep-02 22:39 
GeneralRe: RichTextBox Pin
James McCutcheon1-Sep-02 22:01
James McCutcheon1-Sep-02 22:01 
GeneralRe: RichTextBox Pin
Iulian Serban1-Sep-02 22:37
Iulian Serban1-Sep-02 22:37 
Generalwebservice Pin
Mazdak1-Sep-02 7:29
Mazdak1-Sep-02 7:29 
GeneralRe: webservice Pin
SimonS2-Sep-02 22:06
SimonS2-Sep-02 22:06 
GeneralGetting the Handle of a Form in Design mode Pin
leppie1-Sep-02 6:32
leppie1-Sep-02 6:32 
GeneralOpen Directory Pin
Nnamdi Onyeyiri1-Sep-02 4:55
Nnamdi Onyeyiri1-Sep-02 4:55 
GeneralRe: Open Directory Pin
leppie1-Sep-02 6:48
leppie1-Sep-02 6:48 
GeneralRe: Open Directory Pin
Stephane Rodriguez.1-Sep-02 7:24
Stephane Rodriguez.1-Sep-02 7:24 
GeneralRe: Open Directory Pin
Mazdak1-Sep-02 9:41
Mazdak1-Sep-02 9:41 
GeneralCalling a C# DLL in C++ Pin
Anonymous1-Sep-02 3:39
Anonymous1-Sep-02 3:39 
GeneralRe: Calling a C# DLL in C++ Pin
Stephane Rodriguez.1-Sep-02 4:04
Stephane Rodriguez.1-Sep-02 4:04 
QuestionHow to change namespace for resource file? Pin
tomiga1-Sep-02 1:29
tomiga1-Sep-02 1:29 
QuestionAm I doing it right? Pin
Li-kai Liu (Angus)31-Aug-02 17:50
Li-kai Liu (Angus)31-Aug-02 17:50 
Hi,

Well, I guess it's a design quesiton.
I try to write a layout engine with two classes in it. The LayoutPanel class acts as a container for either LayoutPanel or LayoutItem, where LayoutItem is simply an object that stores the width and height of a visible item. and here is my solution:

class LayoutPanel: Component, IContainer
class LayoutItem: Component

is this ok? or better to have an abstract class on top of both (because both of them have widths and heights as attributes).

ThanksSmile | :)

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.