Click here to Skip to main content
15,900,707 members
Home / Discussions / C#
   

C#

 
QuestionInvalidActiveXSateException was unhandled- MSChart control 6.0 Pin
GunaChinna29-Jan-07 18:13
GunaChinna29-Jan-07 18:13 
QuestionSimple calculator using ASP.NET Pin
coolgoose1329-Jan-07 13:30
coolgoose1329-Jan-07 13:30 
AnswerRe: Simple calculator using ASP.NET Pin
Christian Graus29-Jan-07 13:31
protectorChristian Graus29-Jan-07 13:31 
AnswerRe: Simple calculator using ASP.NET Pin
Vasudevan Deepak Kumar29-Jan-07 21:28
Vasudevan Deepak Kumar29-Jan-07 21:28 
GeneralRe: Simple calculator using ASP.NET Pin
coolgoose1331-Jan-07 5:01
coolgoose1331-Jan-07 5:01 
QuestionDiagramming Component Pin
Ranjan Banerji29-Jan-07 13:19
Ranjan Banerji29-Jan-07 13:19 
QuestionInherited default values Pin
Chris_McGrath29-Jan-07 13:15
Chris_McGrath29-Jan-07 13:15 
AnswerRe: Inherited default values Pin
Martin#29-Jan-07 22:19
Martin#29-Jan-07 22:19 
Hello Chris,

it seems that you forgot to initialize the local variables of your properties.
Setting the DefaultValue Attribute to "true" is not sufficient.
If it was DefaultValue(false), you would have luck because the boolean default is "false".

That means you would have to do:

private bool testProp = true;

[Browsable(true), Category("Icons Visible"), DefaultValue(true)]
public bool TestProp
{
    get
    {
        return testProp;
    }
    set
    {
        testProp=value;
    }
}


All the best,

Martin
GeneralRe: Inherited default values Pin
Chris_McGrath30-Jan-07 12:54
Chris_McGrath30-Jan-07 12:54 
GeneralRe: Inherited default values Pin
Martin#30-Jan-07 19:51
Martin#30-Jan-07 19:51 
QuestionAdding the Application Output to the Installer Package Pin
Eyungwah29-Jan-07 12:24
Eyungwah29-Jan-07 12:24 
Questionreplace strings in file Pin
netJP12L29-Jan-07 12:08
netJP12L29-Jan-07 12:08 
AnswerRe: replace strings in file Pin
Luc Pattyn29-Jan-07 13:30
sitebuilderLuc Pattyn29-Jan-07 13:30 
AnswerRe: replace strings in file Pin
Guffa29-Jan-07 13:30
Guffa29-Jan-07 13:30 
QuestionListView windows forms Question Urgant Pin
Mustafa Magdy29-Jan-07 11:53
Mustafa Magdy29-Jan-07 11:53 
AnswerRe: ListView windows forms Question Urgant [modified] Pin
Alaric_29-Jan-07 12:03
professionalAlaric_29-Jan-07 12:03 
Questionparsing file Pin
picasso229-Jan-07 11:36
picasso229-Jan-07 11:36 
AnswerRe: parsing file Pin
Stefan Troschuetz29-Jan-07 11:44
Stefan Troschuetz29-Jan-07 11:44 
AnswerRe: parsing file Pin
Luc Pattyn29-Jan-07 11:44
sitebuilderLuc Pattyn29-Jan-07 11:44 
Question(float) problem? Pin
johnacton29-Jan-07 9:45
johnacton29-Jan-07 9:45 
AnswerRe: (float) problem? Pin
Luc Pattyn29-Jan-07 9:59
sitebuilderLuc Pattyn29-Jan-07 9:59 
GeneralRe: (float) problem? Pin
johnacton29-Jan-07 10:31
johnacton29-Jan-07 10:31 
AnswerRe: (float) problem? Pin
led mike29-Jan-07 10:00
led mike29-Jan-07 10:00 
AnswerRe: (float) problem? Pin
Dan Neely29-Jan-07 10:50
Dan Neely29-Jan-07 10:50 
QuestionIs there an easy way to check if a column from one table exists in another ? Pin
csharpguyfromde29-Jan-07 9:17
csharpguyfromde29-Jan-07 9:17 

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.