Hi everybody!
I have a little problem with making properties editable under VS2008.
For example I've class:
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using System.Security.Permissions;
namespace ProjektBDApp.NowaWersja.Klasy
{
public class ControlVector : ISerializable
{
int left;
int top;
int width;
int height;
#region Acessors
public int Left
{
get { return left; }
set { left = value; }
}
public int Top
{
get { return top; }
set { top = value; }
}
public int Width
{
get { return width; }
set { width = value; }
}
public int Height
{
get { return height; }
set { height = value; }
}
#endregion
public ControlVector()
{
Top = Left = Width = Height = 0;
}
public void GetObjectData(SerializationInfo info, StreamingContext ctxt)
{
info.AddValue("Left", Left);
info.AddValue("Top", Top);
info.AddValue("Width", Width);
info.AddValue("Height", Height);
}
public ControlVector(SerializationInfo info, StreamingContext ctxt)
{
Left = info.GetInt32("Left");
Top = info.GetInt32("Top");
Width = info.GetInt32("Width");
Height = info.GetInt32("Height");
}
}
}
And I want to make it member of my own control (exactly for component contaning many controls inside). But when I try to modificate it in VS designer (when I add my component to a form) I see only type name in Properties toolbox like this: "ProjektBDApp.NowaWersja.Klasy.ControlVector"
I want to see tree where I can modify localization.