Click here to Skip to main content
15,905,419 members
Home / Discussions / C#
   

C#

 
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 
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 
Hello Chris,

Hmmm?

I tested it now with a simple user control which has a button on it.
I placed it on a baseform and inherit a formclass from that baseform.
And.. Same effect than you have!!

I have no real explination for that, but it hs something todo with the timing of the designer.
The designer runns the constructor code of your controls, maybe at the time where he whants to get youre property, the button is not initialized. (Just out of my head.)

I would suggest you aworkaround like this:
private bool testProp = true;
[Browsable(true), Category("Icons Visible"), DefaultValue(true)]
public bool TestProp
{
    get
    {
        return testProp;//button1.Visible;
    }
    set
    {

        testProp = value;
        button1.Visible=value;
    }
}


Hope it helps!

All the best,

Martin
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 
AnswerRe: Is there an easy way to check if a column from one table exists in another ? Pin
Christian Graus29-Jan-07 9:36
protectorChristian Graus29-Jan-07 9:36 
GeneralRe: Is there an easy way to check if a column from one table exists in another ? Pin
csharpguyfromde29-Jan-07 10:04
csharpguyfromde29-Jan-07 10:04 

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.