C# IDE show all properties for controls and forms

P

Peted

im using c# 2005 express edition.

Is there a setting in the IDE that i am missing that would allow ALL
the properties available to the selected control to be shown in the
properties list in the IDE

For example

some controls such as forms, have properties such as .Dock and
..MdiParent that you can set during runtime. But is it possible to have
these properties shown and set at design time in the properties list.

As another example a Button class has the .Dock property listed but
the Form class does not.


thanks for any advice


Peted
 
M

Miroslav Stampar [MCSD.NET / Security+]

Those properties are hidden from Form Designer with a reason -
purposely hidden with assembly attribute [Browsable(false)]. Some of
those properties are not advised to use or do not work properly (such
as Dock of Form) in normal cases. This is most often caused by
inheriting other controls - in first case it's normal to use one
property but in new one maybe that property doesn't perform well.

HTH :)

p.s. if you hardly want to unhide those properties:

public class ButtonWithDock : Button
{
[Browsable(true)]
public new DockStyle Dock
{
get
{
return base.Dock;
}
set
{
base.Dock = value;
}
}
}

Peted je napisao/la:
 
A

Aneesh Pulukkul

Those properties are hidden from Form Designer with a reason -
purposely hidden with assembly attribute [Browsable(false)]. Some of
those properties are not advised to use or do not work properly (such
as Dock of Form) in normal cases. This is most often caused by
inheriting other controls - in first case it's normal to use one
property but in new one maybe that property doesn't perform well.

HTH :)

p.s. if you hardly want to unhide those properties:

public class ButtonWithDock : Button
{
[Browsable(true)]
public new DockStyle Dock
{
get
{
return base.Dock;
}
set
{
base.Dock = value;
}
}
}

Peted je napisao/la:


im using c# 2005 express edition.
Is there a setting in the IDE that i am missing that would allow ALL
the properties available to the selected control to be shown in the
properties list in the IDE
For example
some controls such as forms, have properties such as .Dock and
.MdiParent that you can set during runtime. But is it possible to have
these properties shown and set at design time in the properties list.
As another example a Button class has the .Dock property listed but
the Form class does not.
thanks for any advice
Peted- Hide quoted text -

- Show quoted text -

Are you planning to use the Dock for child forms?..Didn't get the
exact scene..
 
P

Peted

Are you planning to use the Dock for child forms?..Didn't get the
exact scene..

yes i was. i can do it in code. Using the .Dock fill option is the
only way i can get a child form to fill up inside a MDI form, without
the scroll bars always appearing.

Peted
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top