Hello all!!

I am creating a control... Here is the problem I'd like to solver:

I have a Public ReadOnly Property which returns a string. This string has a path seperator at the end of it. I would like to create another proerty that strips off this path seperator, which will be available in the properties viewer at design time.

Example:

Path is taken from registry, but I will use a hyperthetical one for this example. Say that I have just got 'C:\MyPath\' from the registry via a Public ReadOnly Property

2nd Property:

How do I creat a second property that will strip the path character from the first property?

The problem that I am facing is that the first property is ReadOnly (because I don't want it changed). So, if I try & strip off the path seperator using a second property then it won't do it.

Any ideas or maybe someone could tell me of a better way of doing this so that both properties are visible in the properties explorer?

Finally about the control. How can I create the control to just have my properties/methods available & not all the others inherited from the user control? Is it as simple as removing the 'Inherits ...UserControl'?

Any help would be grateful! Thanks in advance