Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

C# Programming

C# IDE show all properties for controls and forms


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

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:

On Jun 5, 2:49 pm, "Miroslav Stampar [MCSD.NET / Security+]"

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

-----------------------------------------------Reply-----------------------------------------------

>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

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc