Click here to Skip to main content
16,004,782 members
Home / Discussions / C#
   

C#

 
GeneralRe: TabControl on a WinForm without showing the Tab header? Pin
Pyrrhon13-May-09 4:43
Pyrrhon13-May-09 4:43 
QuestionHow to place user controls dynamically on a windows form Pin
Nekkantidivya12-May-09 1:11
Nekkantidivya12-May-09 1:11 
AnswerRe: How to place user controls dynamically on a windows form Pin
Christian Graus12-May-09 1:15
protectorChristian Graus12-May-09 1:15 
AnswerRe: How to place user controls dynamically on a windows form Pin
DaveyM6912-May-09 1:25
professionalDaveyM6912-May-09 1:25 
GeneralRe: How to place user controls dynamically on a windows form Pin
Michael Bookatz12-May-09 1:34
Michael Bookatz12-May-09 1:34 
GeneralRe: How to place user controls dynamically on a windows form Pin
Henry Minute12-May-09 1:57
Henry Minute12-May-09 1:57 
GeneralRe: How to place user controls dynamically on a windows form Pin
Rob Philpott12-May-09 4:20
Rob Philpott12-May-09 4:20 
GeneralRe: How to place user controls dynamically on a windows form [modified] Pin
DaveyM6912-May-09 5:02
professionalDaveyM6912-May-09 5:02 
Control has got way too many properties IMO. Deriving from it to create a new control is a PITA as you have to try and hide all the non relevant ones (and methods too) which is not only messy/time consuming but very non OOP.

If they had a IControl interface that just had the basics required, and a form's Controls property was a list of IControl it would be way better.

Something like
interface IControl : ISynchronizeInvoke, IWin32Window
{
    bool Enabled { get; set; }

    Point Location { get; set; }

    Size Size { get; set; }

    bool Visible { get; set; }
}
public abstract ControlBase: IControl
{
    // Implement derived stuff here
    ...
    //
}
It'll never happen though Frown | :(

[Edit] Made a mess of Interface with ControlBase stuff in it D'Oh! | :doh: [/Edit]


Actually, now I've thought about it a few minutes - just the ControlBase (would need a little more than I provided so we can have OnPaint etc to override) would be enough. Give me ten minutes and I'll probably change my mind again!

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)

modified on Tuesday, May 12, 2009 11:20 AM

AnswerRe: How to place user controls dynamically on a windows form Pin
tim_gunning12-May-09 1:26
tim_gunning12-May-09 1:26 
QuestionHow to make the property having listview type Pin
lnmca12-May-09 1:04
lnmca12-May-09 1:04 
AnswerRe: How to make the property having listview type Pin
Christian Graus12-May-09 1:17
protectorChristian Graus12-May-09 1:17 
General[Message Deleted] Pin
lnmca12-May-09 1:31
lnmca12-May-09 1:31 
GeneralRe: How to make the property having listview type Pin
Christian Graus12-May-09 1:37
protectorChristian Graus12-May-09 1:37 
GeneralRe: How to make the property having listview type Pin
Tom Deketelaere12-May-09 1:45
professionalTom Deketelaere12-May-09 1:45 
General[Message Deleted] Pin
lnmca12-May-09 2:03
lnmca12-May-09 2:03 
GeneralRe: How to make the property having listview type Pin
Christian Graus12-May-09 2:18
protectorChristian Graus12-May-09 2:18 
GeneralRe: How to make the property having listview type Pin
fly90412-May-09 2:46
fly90412-May-09 2:46 
QuestionBest way to get an image of a Form Pin
Steve_12-May-09 0:56
Steve_12-May-09 0:56 
AnswerRe: Best way to get an image of a Form Pin
Christian Graus12-May-09 1:17
protectorChristian Graus12-May-09 1:17 
GeneralRe: Best way to get an image of a Form Pin
Steve_12-May-09 1:46
Steve_12-May-09 1:46 
GeneralRe: Best way to get an image of a Form Pin
Christian Graus12-May-09 1:47
protectorChristian Graus12-May-09 1:47 
QuestionExecuting Java Object in C# Pin
Mninawa12-May-09 0:54
Mninawa12-May-09 0:54 
AnswerRe: Executing Java Object in C# Pin
Steve_12-May-09 0:59
Steve_12-May-09 0:59 
GeneralRe: Executing Java Object in C# Pin
Steve_12-May-09 1:03
Steve_12-May-09 1:03 
GeneralRe: Executing Java Object in C# Pin
Mninawa12-May-09 1:59
Mninawa12-May-09 1:59 

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.