473,320 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Changing DisplayNames of my properties using PropertyGrid component, how ??

Changing DisplayNames of my properties using PropertyGrid component, how ??

I'm using Delphi 2006 and I have a class defination like this:

TPerson = class
fPersonName : String;
fPersonSurName : String;
fPersonAge : Integer;
published
property PersonName : String read fPersonName write fPersonName;
property PersonSurname : String read fPersonSurname write fPersonSurname;
property PersonAge : Integer read fPersonAge write fPersonAge;
end;

and i want to display my class instance using PropertyGrid,so...

var
mPerson : TPerson;
begin
mPerson := TPerson.Create;
mPerson.PersonName := 'Tugrul';
mPerson.PersonSurname := 'HELVACI';
mPerson.PersonAge := 31;
PropertyGrid1.SelectedObject := mPerson;
end;

at the above code i can see my class instance in the property grid.
But i want to change property display names in the propertygrid component.
Because of these, i was searching on the net and i found PropertyDescriptor
abstract class
and ICustomTypeConverter interface.

i implemented theese classes following:

TArrayOfAttribute = array of Attribute;
TMyDescriptor = class(PropertyDescriptor)
private
base : PropertyDescriptor;
fName: String;

function GetName : String;
function GetDisplayName : String;
function GetIsReadOnly : Boolean;
function GetComponentType : &Type;
function GetPropertyType : &Type;

function GetCustomNames(baseName : String) : String; // my custom names
getter function
public
constructor Create(baseP : PropertyDescriptor; filter :
TArrayOfAttribute); overload; virtual;
constructor Create(baseP : PropertyDescriptor); overload; virtual;

function CanResetValue(comp : TObject) : Boolean;
function GetValue(comp : TObject) : TObject;

procedure ResetValue(comp : TObject);
procedure SetValue(comp : TObject; Value : TObject);
function ShouldSerializeValue(comp : TObject) : Boolean;
property Name : String read GetName;
property DisplayName : String read GetDisplayName;
property IsReadOnly : Boolean read GetIsReadOnly;
property ComponentType : &Type read GetComponentType;
property PropertyType : &Type read GetPropertyType;
end;

TMyClass = class(TInterfacedObject, ICustomTypeDescriptor)
public
function GetProperties(filter : TArrayOfAttribute) :
PropertyDescriptorCollection; overload;
function GetAttributes : AttributeCollection;
function GetClassName : String;
function GetComponentName : String;
function GetConverter : TypeConverter;
function GetDefaultEvent : EventDescriptor;

function GetEvents(attributes : TArrayOfAttribute) :
EventDescriptorCollection; overload;
function GetEvents : EventDescriptorCollection; overload;
function GetDefaultProperty : PropertyDescriptor;

function GetProperties : PropertyDescriptorCollection; overload;
function GetEditor(editorBaseType : System.Type) : TObject;
function GetPropertyOwner(pd : PropertyDescriptor) : TObject;
end;
and my new TPerson class is:
TPerson = class(TMyClass)
fPersonName : String;
fPersonSurName : String;
fPersonAge : Integer;
published
property PersonName : String read fPersonName write fPersonName;
property PersonSurname : String read fPersonSurname write fPersonSurname;
property PersonAge : Integer read fPersonAge write fPersonAge;
end;

**************** IMPLEMENTATIONS BELOW *********************************
{ TMyDescriptor }

function TMyDescriptor.CanResetValue(comp: TObject): Boolean;
begin
Result := base.CanResetValue(comp);
end;
constructor TMyDescriptor.Create(baseP: PropertyDescriptor;
filter: TArrayOfAttribute);
begin
inherited Create(baseP, filter);
Self.base := baseP;
end;

constructor TMyDescriptor.Create(baseP: PropertyDescriptor);
begin
inherited Create(baseP);
Self.base := baseP;
end;

function TMyDescriptor.GetComponentType: &Type;
begin
Result := base.ComponentType;
end;

function TMyDescriptor.GetDisplayName: String;
begin
Result := GetCustomNames(base.Name);
end;

function TMyDescriptor.Getir(baseName : String): String;
begin
if baseName = 'PersonName' then Result := 'Names of the Personel';
if baseName = 'PersonSurname' then Result := 'Surname of the personel';
if baseName = 'PersonAge' then Result := 'Age of the personel';
end;

function TMyDescriptor.GetIsReadOnly: Boolean;
begin
Result := base.IsReadOnly;
end;

function TMyDescriptor.GetName: String;
begin
Result := base.Name;
end;
function TMyDescriptor.GetPropertyType: &Type;
begin
Result := base.PropertyType;
end;

function TMyDescriptor.GetValue(comp: TObject): TObject;
begin
Result := base.GetValue(comp);
end;
procedure TMyDescriptor.ResetValue(comp: TObject);
begin
base.ResetValue(comp);
end;

procedure TMyDescriptor.SetValue(comp, Value: TObject);
begin
base.SetValue(comp, value);
end;

function TMyDescriptor.ShouldSerializeValue(comp: TObject): Boolean;
begin
Result := base.ShouldSerializeValue(comp);
end;

{ TMyClass }

function TMyClass.GetProperties(
filter: TArrayOfAttribute): PropertyDescriptorCollection;
var
baseProps : PropertyDescriptorCollection;
newProps : array of PropertyDescriptor;
iCounter : Integer;
oldname,
newname : String;
begin
baseProps := TypeDescriptor.GetProperties(GetType(), filter);

SetLength(newProps, baseProps.Count);

for iCounter := 0 to baseProps.Count do
begin
newProps[iCounter] := TMyDescriptor.Create(baseProps[iCounter], filter);
// An error occured : E2402 constructing instance of abstract class..
oldname := PropertyDescriptor(baseProps[iCounter]).DisplayName;
newName := TMyDescriptor(newProps[iCounter]).DisplayName;
end;

Result := PropertyDescriptorCollection.Create(newProps);
end;

function TMyClass.GetAttributes: AttributeCollection;
begin
Result := TypeDescriptor.GetAttributes(Self, true);
end;

function TMyClass.GetClassName: String;
begin
Result := TypeDescriptor.GetClassName(Self, true);
end;

function TMyClass.GetComponentName: String;
begin
Result := TypeDescriptor.GetComponentName(Self, true);
end;

function TMyClass.GetConverter: TypeConverter;
begin
Result := TypeDescriptor.GetConverter(Self, true);
end;

function TMyClass.GetDefaultEvent: EventDescriptor;
begin
Result := TypeDescriptor.GetDefaultEvent(Self, true);
end;

function TMyClass.GetDefaultProperty: PropertyDescriptor;
begin
Result := TypeDescriptor.GetDefaultProperty(Self, true);
end;

function TMyClass.GetEditor(editorBaseType: System.Type): TObject;
begin
Result := TypeDescriptor.GetEditor(Self, editorBaseType, true);
end;

function TMyClass.GetEvents: EventDescriptorCollection;
begin
Result := TypeDescriptor.GetEvents(Self, true);
end;

function TMyClass.GetEvents(
attributes: TArrayOfAttribute): EventDescriptorCollection;
begin
Result := TypeDescriptor.GetEvents(Self, attributes, true);
end;

function TMyClass.GetProperties: PropertyDescriptorCollection;
begin
Result := TypeDescriptor.GetProperties(Self, true);
end;

function TMyClass.GetPropertyOwner(pd: PropertyDescriptor): TObject;
begin
Result := Self;
end;
I dont understand what is this. Can anybody helps me , how can i
subclassing PropertyDescriptor class correctly ??
Even we take an error when using delphi.net , we dont take any error
message using c#,

i want change the display name of the property which is the added to my
special class by using the propertyGrid Component ...
It's seems like DisplayNameAttirubute of the .net Framework 2.0

With My Best Regards,

Thanks For Helping
Dec 4 '06 #1
4 3261
I know enough about the component-model to answer this, but sadly my
object-pascal has slipped. I suggest you repost in a delphi ng.

In C#, can I point you here:
http://groups.google.co.uk/group/mic...42a0f66d6b3987

Cheers,

Marc
Dec 4 '06 #2
Of course, the simpler answer is to find how to set (fixed) attributes in
Delphi ;-p

Marc
Dec 4 '06 #3
I saw this posting in the following groups:

microsoft.public.dotnet.faqs
microsoft.public.dotnet.framework
microsoft.public.dotnet.framework.interop
microsoft.public.dotnet.framework.windowsforms
microsoft.public.dotnet.framework.windowsforms.con trols
microsoft.public.dotnet.languages.csharp
microsoft.public.dotnet.general

When you post a message to multiple groups, please post all of
them at once. That way, if someone in one group provides a
solution, the solution will be posted to all of the groups.
Also, if someone in another group is working on a solution,
they will know it has been solved, and they can work on helping
somebody else.

Thanks,
Robin S.
---------------------------------
"Tugrul HELVACI" <ki************@hotmail.comwrote in message
news:eU**************@TK2MSFTNGP04.phx.gbl...
Changing DisplayNames of my properties using PropertyGrid component, how
??

I'm using Delphi 2006 and I have a class defination like this:

TPerson = class
fPersonName : String;
fPersonSurName : String;
fPersonAge : Integer;
published
property PersonName : String read fPersonName write fPersonName;
property PersonSurname : String read fPersonSurname write fPersonSurname;
property PersonAge : Integer read fPersonAge write fPersonAge;
end;

and i want to display my class instance using PropertyGrid,so...

var
mPerson : TPerson;
begin
mPerson := TPerson.Create;
mPerson.PersonName := 'Tugrul';
mPerson.PersonSurname := 'HELVACI';
mPerson.PersonAge := 31;
PropertyGrid1.SelectedObject := mPerson;
end;

at the above code i can see my class instance in the property grid.
But i want to change property display names in the propertygrid component.
Because of these, i was searching on the net and i found
PropertyDescriptor abstract class
and ICustomTypeConverter interface.

i implemented theese classes following:

TArrayOfAttribute = array of Attribute;
TMyDescriptor = class(PropertyDescriptor)
private
base : PropertyDescriptor;
fName: String;

function GetName : String;
function GetDisplayName : String;
function GetIsReadOnly : Boolean;
function GetComponentType : &Type;
function GetPropertyType : &Type;

function GetCustomNames(baseName : String) : String; // my custom names
getter function
public
constructor Create(baseP : PropertyDescriptor; filter :
TArrayOfAttribute); overload; virtual;
constructor Create(baseP : PropertyDescriptor); overload; virtual;

function CanResetValue(comp : TObject) : Boolean;
function GetValue(comp : TObject) : TObject;

procedure ResetValue(comp : TObject);
procedure SetValue(comp : TObject; Value : TObject);
function ShouldSerializeValue(comp : TObject) : Boolean;
property Name : String read GetName;
property DisplayName : String read GetDisplayName;
property IsReadOnly : Boolean read GetIsReadOnly;
property ComponentType : &Type read GetComponentType;
property PropertyType : &Type read GetPropertyType;
end;

TMyClass = class(TInterfacedObject, ICustomTypeDescriptor)
public
function GetProperties(filter : TArrayOfAttribute) :
PropertyDescriptorCollection; overload;
function GetAttributes : AttributeCollection;
function GetClassName : String;
function GetComponentName : String;
function GetConverter : TypeConverter;
function GetDefaultEvent : EventDescriptor;

function GetEvents(attributes : TArrayOfAttribute) :
EventDescriptorCollection; overload;
function GetEvents : EventDescriptorCollection; overload;
function GetDefaultProperty : PropertyDescriptor;

function GetProperties : PropertyDescriptorCollection; overload;
function GetEditor(editorBaseType : System.Type) : TObject;
function GetPropertyOwner(pd : PropertyDescriptor) : TObject;
end;
and my new TPerson class is:
TPerson = class(TMyClass)
fPersonName : String;
fPersonSurName : String;
fPersonAge : Integer;
published
property PersonName : String read fPersonName write fPersonName;
property PersonSurname : String read fPersonSurname write
fPersonSurname;
property PersonAge : Integer read fPersonAge write fPersonAge;
end;

**************** IMPLEMENTATIONS BELOW *********************************
{ TMyDescriptor }

function TMyDescriptor.CanResetValue(comp: TObject): Boolean;
begin
Result := base.CanResetValue(comp);
end;
constructor TMyDescriptor.Create(baseP: PropertyDescriptor;
filter: TArrayOfAttribute);
begin
inherited Create(baseP, filter);
Self.base := baseP;
end;

constructor TMyDescriptor.Create(baseP: PropertyDescriptor);
begin
inherited Create(baseP);
Self.base := baseP;
end;

function TMyDescriptor.GetComponentType: &Type;
begin
Result := base.ComponentType;
end;

function TMyDescriptor.GetDisplayName: String;
begin
Result := GetCustomNames(base.Name);
end;

function TMyDescriptor.Getir(baseName : String): String;
begin
if baseName = 'PersonName' then Result := 'Names of the Personel';
if baseName = 'PersonSurname' then Result := 'Surname of the personel';
if baseName = 'PersonAge' then Result := 'Age of the personel';
end;

function TMyDescriptor.GetIsReadOnly: Boolean;
begin
Result := base.IsReadOnly;
end;

function TMyDescriptor.GetName: String;
begin
Result := base.Name;
end;
function TMyDescriptor.GetPropertyType: &Type;
begin
Result := base.PropertyType;
end;

function TMyDescriptor.GetValue(comp: TObject): TObject;
begin
Result := base.GetValue(comp);
end;
procedure TMyDescriptor.ResetValue(comp: TObject);
begin
base.ResetValue(comp);
end;

procedure TMyDescriptor.SetValue(comp, Value: TObject);
begin
base.SetValue(comp, value);
end;

function TMyDescriptor.ShouldSerializeValue(comp: TObject): Boolean;
begin
Result := base.ShouldSerializeValue(comp);
end;

{ TMyClass }

function TMyClass.GetProperties(
filter: TArrayOfAttribute): PropertyDescriptorCollection;
var
baseProps : PropertyDescriptorCollection;
newProps : array of PropertyDescriptor;
iCounter : Integer;
oldname,
newname : String;
begin
baseProps := TypeDescriptor.GetProperties(GetType(), filter);

SetLength(newProps, baseProps.Count);

for iCounter := 0 to baseProps.Count do
begin
newProps[iCounter] := TMyDescriptor.Create(baseProps[iCounter],
filter); // An error occured : E2402 constructing instance of abstract
class..
oldname := PropertyDescriptor(baseProps[iCounter]).DisplayName;
newName := TMyDescriptor(newProps[iCounter]).DisplayName;
end;

Result := PropertyDescriptorCollection.Create(newProps);
end;

function TMyClass.GetAttributes: AttributeCollection;
begin
Result := TypeDescriptor.GetAttributes(Self, true);
end;

function TMyClass.GetClassName: String;
begin
Result := TypeDescriptor.GetClassName(Self, true);
end;

function TMyClass.GetComponentName: String;
begin
Result := TypeDescriptor.GetComponentName(Self, true);
end;

function TMyClass.GetConverter: TypeConverter;
begin
Result := TypeDescriptor.GetConverter(Self, true);
end;

function TMyClass.GetDefaultEvent: EventDescriptor;
begin
Result := TypeDescriptor.GetDefaultEvent(Self, true);
end;

function TMyClass.GetDefaultProperty: PropertyDescriptor;
begin
Result := TypeDescriptor.GetDefaultProperty(Self, true);
end;

function TMyClass.GetEditor(editorBaseType: System.Type): TObject;
begin
Result := TypeDescriptor.GetEditor(Self, editorBaseType, true);
end;

function TMyClass.GetEvents: EventDescriptorCollection;
begin
Result := TypeDescriptor.GetEvents(Self, true);
end;

function TMyClass.GetEvents(
attributes: TArrayOfAttribute): EventDescriptorCollection;
begin
Result := TypeDescriptor.GetEvents(Self, attributes, true);
end;

function TMyClass.GetProperties: PropertyDescriptorCollection;
begin
Result := TypeDescriptor.GetProperties(Self, true);
end;

function TMyClass.GetPropertyOwner(pd: PropertyDescriptor): TObject;
begin
Result := Self;
end;
I dont understand what is this. Can anybody helps me , how can i
subclassing PropertyDescriptor class correctly ??
Even we take an error when using delphi.net , we dont take any error
message using c#,

i want change the display name of the property which is the added to my
special class by using the propertyGrid Component ...
It's seems like DisplayNameAttirubute of the .net Framework 2.0

With My Best Regards,

Thanks For Helping

Dec 4 '06 #4
DisplayNameAttribute found in System.ComponentModel

Gabriel Lozano-Morán

"Tugrul HELVACI" <ki************@hotmail.comwrote in message
news:eU**************@TK2MSFTNGP04.phx.gbl...
Changing DisplayNames of my properties using PropertyGrid component, how
??

I'm using Delphi 2006 and I have a class defination like this:

TPerson = class
fPersonName : String;
fPersonSurName : String;
fPersonAge : Integer;
published
property PersonName : String read fPersonName write fPersonName;
property PersonSurname : String read fPersonSurname write fPersonSurname;
property PersonAge : Integer read fPersonAge write fPersonAge;
end;

and i want to display my class instance using PropertyGrid,so...

var
mPerson : TPerson;
begin
mPerson := TPerson.Create;
mPerson.PersonName := 'Tugrul';
mPerson.PersonSurname := 'HELVACI';
mPerson.PersonAge := 31;
PropertyGrid1.SelectedObject := mPerson;
end;

at the above code i can see my class instance in the property grid.
But i want to change property display names in the propertygrid component.
Because of these, i was searching on the net and i found
PropertyDescriptor abstract class
and ICustomTypeConverter interface.

i implemented theese classes following:

TArrayOfAttribute = array of Attribute;
TMyDescriptor = class(PropertyDescriptor)
private
base : PropertyDescriptor;
fName: String;

function GetName : String;
function GetDisplayName : String;
function GetIsReadOnly : Boolean;
function GetComponentType : &Type;
function GetPropertyType : &Type;

function GetCustomNames(baseName : String) : String; // my custom names
getter function
public
constructor Create(baseP : PropertyDescriptor; filter :
TArrayOfAttribute); overload; virtual;
constructor Create(baseP : PropertyDescriptor); overload; virtual;

function CanResetValue(comp : TObject) : Boolean;
function GetValue(comp : TObject) : TObject;

procedure ResetValue(comp : TObject);
procedure SetValue(comp : TObject; Value : TObject);
function ShouldSerializeValue(comp : TObject) : Boolean;
property Name : String read GetName;
property DisplayName : String read GetDisplayName;
property IsReadOnly : Boolean read GetIsReadOnly;
property ComponentType : &Type read GetComponentType;
property PropertyType : &Type read GetPropertyType;
end;

TMyClass = class(TInterfacedObject, ICustomTypeDescriptor)
public
function GetProperties(filter : TArrayOfAttribute) :
PropertyDescriptorCollection; overload;
function GetAttributes : AttributeCollection;
function GetClassName : String;
function GetComponentName : String;
function GetConverter : TypeConverter;
function GetDefaultEvent : EventDescriptor;

function GetEvents(attributes : TArrayOfAttribute) :
EventDescriptorCollection; overload;
function GetEvents : EventDescriptorCollection; overload;
function GetDefaultProperty : PropertyDescriptor;

function GetProperties : PropertyDescriptorCollection; overload;
function GetEditor(editorBaseType : System.Type) : TObject;
function GetPropertyOwner(pd : PropertyDescriptor) : TObject;
end;
and my new TPerson class is:
TPerson = class(TMyClass)
fPersonName : String;
fPersonSurName : String;
fPersonAge : Integer;
published
property PersonName : String read fPersonName write fPersonName;
property PersonSurname : String read fPersonSurname write
fPersonSurname;
property PersonAge : Integer read fPersonAge write fPersonAge;
end;

**************** IMPLEMENTATIONS BELOW *********************************
{ TMyDescriptor }

function TMyDescriptor.CanResetValue(comp: TObject): Boolean;
begin
Result := base.CanResetValue(comp);
end;
constructor TMyDescriptor.Create(baseP: PropertyDescriptor;
filter: TArrayOfAttribute);
begin
inherited Create(baseP, filter);
Self.base := baseP;
end;

constructor TMyDescriptor.Create(baseP: PropertyDescriptor);
begin
inherited Create(baseP);
Self.base := baseP;
end;

function TMyDescriptor.GetComponentType: &Type;
begin
Result := base.ComponentType;
end;

function TMyDescriptor.GetDisplayName: String;
begin
Result := GetCustomNames(base.Name);
end;

function TMyDescriptor.Getir(baseName : String): String;
begin
if baseName = 'PersonName' then Result := 'Names of the Personel';
if baseName = 'PersonSurname' then Result := 'Surname of the personel';
if baseName = 'PersonAge' then Result := 'Age of the personel';
end;

function TMyDescriptor.GetIsReadOnly: Boolean;
begin
Result := base.IsReadOnly;
end;

function TMyDescriptor.GetName: String;
begin
Result := base.Name;
end;
function TMyDescriptor.GetPropertyType: &Type;
begin
Result := base.PropertyType;
end;

function TMyDescriptor.GetValue(comp: TObject): TObject;
begin
Result := base.GetValue(comp);
end;
procedure TMyDescriptor.ResetValue(comp: TObject);
begin
base.ResetValue(comp);
end;

procedure TMyDescriptor.SetValue(comp, Value: TObject);
begin
base.SetValue(comp, value);
end;

function TMyDescriptor.ShouldSerializeValue(comp: TObject): Boolean;
begin
Result := base.ShouldSerializeValue(comp);
end;

{ TMyClass }

function TMyClass.GetProperties(
filter: TArrayOfAttribute): PropertyDescriptorCollection;
var
baseProps : PropertyDescriptorCollection;
newProps : array of PropertyDescriptor;
iCounter : Integer;
oldname,
newname : String;
begin
baseProps := TypeDescriptor.GetProperties(GetType(), filter);

SetLength(newProps, baseProps.Count);

for iCounter := 0 to baseProps.Count do
begin
newProps[iCounter] := TMyDescriptor.Create(baseProps[iCounter],
filter); // An error occured : E2402 constructing instance of abstract
class..
oldname := PropertyDescriptor(baseProps[iCounter]).DisplayName;
newName := TMyDescriptor(newProps[iCounter]).DisplayName;
end;

Result := PropertyDescriptorCollection.Create(newProps);
end;

function TMyClass.GetAttributes: AttributeCollection;
begin
Result := TypeDescriptor.GetAttributes(Self, true);
end;

function TMyClass.GetClassName: String;
begin
Result := TypeDescriptor.GetClassName(Self, true);
end;

function TMyClass.GetComponentName: String;
begin
Result := TypeDescriptor.GetComponentName(Self, true);
end;

function TMyClass.GetConverter: TypeConverter;
begin
Result := TypeDescriptor.GetConverter(Self, true);
end;

function TMyClass.GetDefaultEvent: EventDescriptor;
begin
Result := TypeDescriptor.GetDefaultEvent(Self, true);
end;

function TMyClass.GetDefaultProperty: PropertyDescriptor;
begin
Result := TypeDescriptor.GetDefaultProperty(Self, true);
end;

function TMyClass.GetEditor(editorBaseType: System.Type): TObject;
begin
Result := TypeDescriptor.GetEditor(Self, editorBaseType, true);
end;

function TMyClass.GetEvents: EventDescriptorCollection;
begin
Result := TypeDescriptor.GetEvents(Self, true);
end;

function TMyClass.GetEvents(
attributes: TArrayOfAttribute): EventDescriptorCollection;
begin
Result := TypeDescriptor.GetEvents(Self, attributes, true);
end;

function TMyClass.GetProperties: PropertyDescriptorCollection;
begin
Result := TypeDescriptor.GetProperties(Self, true);
end;

function TMyClass.GetPropertyOwner(pd: PropertyDescriptor): TObject;
begin
Result := Self;
end;
I dont understand what is this. Can anybody helps me , how can i
subclassing PropertyDescriptor class correctly ??
Even we take an error when using delphi.net , we dont take any error
message using c#,

i want change the display name of the property which is the added to my
special class by using the propertyGrid Component ...
It's seems like DisplayNameAttirubute of the .net Framework 2.0

With My Best Regards,

Thanks For Helping

Dec 4 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Fred Chen | last post by:
Hi, I've created a custom component. I want one of the properties of my custom component to be the output file name which is found in project properties. I know that I can get this by writing...
3
by: Martin Montgomery | last post by:
I have, for example, a property called myProperty. I would like, when using a property grid to display the property name as "My Property". Is this possible. Is there an attribute etc Thank ...
5
by: Lance | last post by:
I want to expose properties of a class to a user via a PropertyGrid class. Some of the properties are of type System.IO.FileInfo. Ideally, an OpenFileDialog window would appear when the user...
3
by: Phill. W | last post by:
(VB.Net 2003) I have a UserControl that exposes a number of public properties. When using this control on a.n.other Form, how can(?) I prevent the Forms Designer from adding code into...
0
by: movieknight | last post by:
Hi, I have a class which I am feeding to the propertygrid, and I am exposing a Mesh object from my class for the propertygrid to display. I want the propertygrid to show the values (when you...
5
by: Kimmo Laine | last post by:
Hi is there a way to change propertys attribute from the code? Let´s say that i have the following property in my class: public int Count } Is there a way to change the displayname, from...
2
by: Tugrul HELVACI | last post by:
I'm using Delphi 2006 and I have a class defination like this: TPerson = class fPersonName : String; fPersonSurName : String; fPersonAge : Integer; published property PersonName : String...
0
tbarto
by: tbarto | last post by:
Hello I need to get access to the content of PropertyGrid component that is a part of an application developed in C#. I need to do that from an external application, under windows API. The problem...
6
by: ajk | last post by:
Hi I was wondering how to show different properties in design and run-mode for a user control? Is it possible to do this when implementing the System.ComponentModel.ICustomTypeDescriptor...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.