473,386 Members | 1,812 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,386 software developers and data experts.

MarshalByRefObject

Hi!

My Component contains an object derived
form the System.MarshalByRefObject.

But when I add this component on the Form,
the object inspector does not display the public
properties of the MarshalByRefObject.

Only those of the component are present
and the child object is grayed out.

How can I display the properties of the child
object in the object inspector?

Thanks!
Atmpuri.

Nov 17 '05 #1
9 5612
Atmapuri <ja************@usa.net> wrote:
My Component contains an object derived
form the System.MarshalByRefObject.

But when I add this component on the Form,
the object inspector does not display the public
properties of the MarshalByRefObject.

Only those of the component are present
and the child object is grayed out.

How can I display the properties of the child
object in the object inspector?


Which properties are you thinking of? MarshalByRefObject doesn't *have*
any public properties.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #2
Hi!

My Component contains an object derived
form the System.MarshalByRefObject.
The derived class also introduces
new public properties.

Thanks!
Atmapuri.

Nov 17 '05 #3
Atmapuri <ja************@usa.net> wrote:
My Component contains an object derived
form the System.MarshalByRefObject.
The derived class also introduces
new public properties.


I'm not sure where MarshalByRefObject comes into it though - why do you
think that's an important factor in the problem?

Could you post a short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #4
Hi!

See the code below. I would like to change the property

MyComponent.MyObj.Number

with the Object Inspector during the design time
on winform. Currently the property is dimmed out
in the object inspector.

Thanks!
Atmapuri

public class MyObj: System.MarshalByRefObject
{
private int number = 0;
public int MyNumber
{
get
{
return number;
}
set
{
number = value;
}
}

}

public class MyComponent: System.ComponentModel.Component
{
public MyComponent()
{
aField = new MyObj();
}
public MyObj NumberField
{
get
{ return aField; }
set
{
}
}
}

Nov 17 '05 #5
Atmapuri <ja************@usa.net> wrote:
See the code below. I would like to change the property

MyComponent.MyObj.Number

with the Object Inspector during the design time
on winform. Currently the property is dimmed out
in the object inspector.


<snip>

Please see
http://www.pobox.com/~skeet/csharp/incomplete.html

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #6
Hi!

But I posted fully compilible code
below my signature in the previous
email...

Thanks!
Atmapuri.

Nov 17 '05 #7
Atmapuri <ja************@usa.net> wrote:
But I posted fully compilible code
below my signature in the previous
email...


But it didn't demonstrate the problem, did it? We need to be able to
cut and paste your code, compile it, run it and see the problem. Your
code wasn't runnable - it was just two classes without Main methods.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #8
Hi!
But it didn't demonstrate the problem, did it? We need to be able to
cut and paste your code, compile it, run it and see the problem. Your
code wasn't runnable - it was just two classes without Main methods.


Even then you wont be able to see the problem. You will still
have create an assembly, compile it and add it to the Toolbox
with Add/Remove Toolbox Items from the menu Tools->Options.

Then you will have to insert the component in to the form and
check that not all properties can be edited.

Thanks for your help.
Regards!
Atmapuri.
Nov 17 '05 #9
Atmapuri <ja************@usa.net> wrote:
But it didn't demonstrate the problem, did it? We need to be able to
cut and paste your code, compile it, run it and see the problem. Your
code wasn't runnable - it was just two classes without Main methods.
Even then you wont be able to see the problem. You will still
have create an assembly, compile it and add it to the Toolbox
with Add/Remove Toolbox Items from the menu Tools->Options.


Ah, so it's only in the designer that things are going wrong? That
wasn't clear. I thought you had a properties page embedded in your
application.
Then you will have to insert the component in to the form and
check that not all properties can be edited.


I'm afraid I don't know much about the VS.NET property pages... I don't
think I'll be able to help you.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #10

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

Similar topics

2
by: Paul | last post by:
Have a problem/Question - I have created a C# class that inherits from MarshalByRefObject as well as implements a custom Interface that I have created. The thing that is not working is that when...
4
by: BBFrost | last post by:
I'm not having much success from the interop group. So I'm going to crosspost and hope I don't get flamed too badly Disclaimer - I don't know much at all about Marshalling and Reflection. THE...
0
by: David Krmpotic | last post by:
I have two Singleton SAOs on the server. But one of them has to have a reference to the other one. So I have to pass one MarshalByRefObject to another one .. when I try to do it, I get: ...
0
by: Atmapuri | last post by:
Hi! My Component contains an object derived form the System.MarshalByRefObject. But when I add this component on the Form, the object inspector does not display the public properties of the...
2
by: nick_tucker | last post by:
If I have an Arraylist(which is marked as serailizable) which contains objects derived from MarshalByRefObject something like below public class MyArray { private ArrayList m_al; public void...
0
by: Kalim Julia | last post by:
I have a class named 'BrowseRecords' and there is a public variable called 'mlRECORDSET'. The type of the class BasicScriptClass.SystemConstant.strctRECORDSET strctRECORDSET is Public...
1
by: Todd Beaulieu | last post by:
I need to return a reference of a server-side object to the client. I want that class to implement a custom interface (there will be a number of classes involved here and they will all support the...
4
by: Dan Holmes | last post by:
I am in a jam. Since C# (or the CLR) doesn't support MI i need to create either two inheritance hierarchies or have all my object inherit ultimately from MarshalByRefObject. I noticed that...
0
by: arunairs | last post by:
Hi, As I understand to use PIAB your class must derive from MarshalByRefObject. This simply will not work for me in my current project. Any ideas what does it take to implement your own custom...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.