Click here to Skip to main content
15,889,462 members
Home / Discussions / C#
   

C#

 
GeneralRe: Difference between flush\dispose\close Pin
Scott Dorman26-Feb-07 4:41
professionalScott Dorman26-Feb-07 4:41 
AnswerRe: Difference between flush\dispose\close Pin
Scott Dorman26-Feb-07 4:11
professionalScott Dorman26-Feb-07 4:11 
QuestionDeploying App with Crystal Report (.Net 2005) Pin
Banjo Ayorinde26-Feb-07 1:26
Banjo Ayorinde26-Feb-07 1:26 
QuestionpropertyGrid Pin
mihksoft26-Feb-07 0:21
mihksoft26-Feb-07 0:21 
AnswerRe: propertyGrid Pin
topcatalpha26-Feb-07 0:26
topcatalpha26-Feb-07 0:26 
GeneralRe: propertyGrid Pin
mihksoft26-Feb-07 2:56
mihksoft26-Feb-07 2:56 
GeneralRe: propertyGrid Pin
topcatalpha26-Feb-07 3:06
topcatalpha26-Feb-07 3:06 
GeneralRe: propertyGrid Pin
mihksoft26-Feb-07 3:13
mihksoft26-Feb-07 3:13 
This is the base class:

public abstract class MgrComponentBase
{
Control _baseControl = new Control();

[Browsable(false)]
public Control BaseControl
{
get { return _baseControl; }
set { _baseControl = value; }
}

[CategoryAttribute("Properties"), DescriptionAttribute("Something")]
public string ComponentName
{
get { return BaseControl.Name; }
set { BaseControl.Name = value; }
}
...

This is the second Class:

public class MgrTextBox : MgrComponentBase
{
string _label;
string _tooltipText;

[Browsable(false)]
public MgrTextBox()
{
BaseControl = new System.Windows.Forms.TextBox();
}

public System.Drawing.Color BackgroundColor
{
get { return BaseControl.BackColor; }
set { BaseControl.BackColor = value; }
}
public System.Windows.Forms.TextBox TextBox
{
get { return (TextBox)BaseControl; }
set { BaseControl = value; }
}
...

and doesn't work.
GeneralRe: propertyGrid Pin
topcatalpha26-Feb-07 3:21
topcatalpha26-Feb-07 3:21 
QuestionAssign Datagridview.datasource Pin
topcatalpha26-Feb-07 0:21
topcatalpha26-Feb-07 0:21 
AnswerRe: Assign Datagridview.datasource Pin
topcatalpha24-Apr-07 20:49
topcatalpha24-Apr-07 20:49 
QuestionFocus of another application Pin
MrAndrew26-Feb-07 0:12
MrAndrew26-Feb-07 0:12 
AnswerRe: Focus of another application Pin
topcatalpha26-Feb-07 0:30
topcatalpha26-Feb-07 0:30 
QuestionFocus on Child Form Pin
idreesbadshah25-Feb-07 23:51
idreesbadshah25-Feb-07 23:51 
AnswerRe: Focus on Child Form Pin
Jakub Mller25-Feb-07 23:53
Jakub Mller25-Feb-07 23:53 
GeneralRe: Focus on Child Form Pin
idreesbadshah25-Feb-07 23:59
idreesbadshah25-Feb-07 23:59 
GeneralRe: Focus on Child Form Pin
idreesbadshah26-Feb-07 0:03
idreesbadshah26-Feb-07 0:03 
Questionhow to make a dll COM visible? Pin
kzoly25-Feb-07 23:48
kzoly25-Feb-07 23:48 
AnswerRe: how to make a dll COM visible? Pin
Jakub Mller25-Feb-07 23:55
Jakub Mller25-Feb-07 23:55 
GeneralRe: how to make a dll COM visible? Pin
kzoly25-Feb-07 23:58
kzoly25-Feb-07 23:58 
GeneralRe: how to make a dll COM visible? Pin
Jakub Mller26-Feb-07 0:02
Jakub Mller26-Feb-07 0:02 
GeneralRe: how to make a dll COM visible? Pin
kzoly26-Feb-07 0:07
kzoly26-Feb-07 0:07 
Questionplease check the code.. there's an error in adding a record in the database... Pin
icesha25-Feb-07 23:42
icesha25-Feb-07 23:42 
AnswerRe: please check the code.. there's an error in adding a record in the database... Pin
Colin Angus Mackay25-Feb-07 23:50
Colin Angus Mackay25-Feb-07 23:50 
QuestionSimple Alarm in c# Pin
iamdking25-Feb-07 23:42
iamdking25-Feb-07 23:42 

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.