Click here to Skip to main content
15,909,039 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is it possible to share objects (Managed code c#) across applications? Pin
Christian Graus31-Jan-07 0:09
protectorChristian Graus31-Jan-07 0:09 
GeneralRe: Is it possible to share objects (Managed code c#) across applications? Pin
Diana Fernandez31-Jan-07 2:01
Diana Fernandez31-Jan-07 2:01 
GeneralRe: Is it possible to share objects (Managed code c#) across applications? Pin
Christian Graus31-Jan-07 8:44
protectorChristian Graus31-Jan-07 8:44 
GeneralRe: Is it possible to share objects (Managed code c#) across applications? Pin
Diana Fernandez22-Feb-07 19:13
Diana Fernandez22-Feb-07 19:13 
AnswerRe: Is it possible to share objects (Managed code c#) across applications? Pin
Russell Jones30-Jan-07 22:11
Russell Jones30-Jan-07 22:11 
GeneralRe: Is it possible to share objects (Managed code c#) across applications? Pin
Diana Fernandez31-Jan-07 0:05
Diana Fernandez31-Jan-07 0:05 
QuestionReflecting an object like the PropertyGrid does Pin
Uwe Keim30-Jan-07 18:50
sitebuilderUwe Keim30-Jan-07 18:50 
AnswerRe: Reflecting an object like the PropertyGrid does Pin
Martin#30-Jan-07 23:07
Martin#30-Jan-07 23:07 
Hello,

I'm not sure if I complettly understand the complexity of your question.
I'm using Reflection in combination with Cloning of UserControls, where I whant to get the public properties values.

Works like this:
using System.ComponentModel;
 
PropertyDescriptorCollection pdcMyControl = TypeDescriptor.GetProperties(MyControl);
 
foreach(PropertyDescriptor pdMyControl in pdcMyControl)
{
    System.Type  pd_typ = pdMyControl.PropertyType.GetInterface("ICollection");
    if (pd_typ != null) 
    {
	ICollection ItemsMyControl = pdMyControl.GetValue(MyControl) as ICollection;
	foreach (object obj in ItemsMyControl)
	{
            //Maybe a recursion needed here!
            //...
        }
    }
    else
    {
	//pdMyControl.GetValue(MyControl)); //returns object
    }
}


Maybe it helps!

All the best,

Martin
AnswerRe: Reflecting an object like the PropertyGrid does Pin
J. Dunlap31-Jan-07 1:32
J. Dunlap31-Jan-07 1:32 
QuestionCalling external application with arbitary input parameters Pin
Eyungwah30-Jan-07 18:33
Eyungwah30-Jan-07 18:33 
AnswerRe: Calling external application with arbitary input parameters Pin
Christian Graus30-Jan-07 18:37
protectorChristian Graus30-Jan-07 18:37 
AnswerRe: Calling external application with arbitary input parameters Pin
Tyler4530-Jan-07 18:48
Tyler4530-Jan-07 18:48 
AnswerRe: Calling external application with arbitary input parameters Pin
Martin#30-Jan-07 19:13
Martin#30-Jan-07 19:13 
GeneralRe: Calling external application with arbitary input parameters Pin
Eyungwah31-Jan-07 6:40
Eyungwah31-Jan-07 6:40 
QuestionRe: Calling external application with arbitary input parameters Pin
Eyungwah31-Jan-07 7:28
Eyungwah31-Jan-07 7:28 
AnswerRe: Calling external application with arbitary input parameters Pin
Martin#31-Jan-07 10:24
Martin#31-Jan-07 10:24 
QuestionRe: Calling external application with arbitary input parameters Pin
Eyungwah31-Jan-07 12:49
Eyungwah31-Jan-07 12:49 
AnswerRe: Calling external application with arbitary input parameters [modified] Pin
Martin#31-Jan-07 22:48
Martin#31-Jan-07 22:48 
Questionclear all values from text boxes while logging out Pin
Ankit Aneja30-Jan-07 18:07
Ankit Aneja30-Jan-07 18:07 
AnswerRe: clear all values from text boxes while logging out Pin
Ankit Aneja30-Jan-07 18:10
Ankit Aneja30-Jan-07 18:10 
GeneralRe: clear all values from text boxes while logging out Pin
Ankit Aneja30-Jan-07 18:35
Ankit Aneja30-Jan-07 18:35 
AnswerRe: clear all values from text boxes while logging out Pin
Christian Graus30-Jan-07 18:36
protectorChristian Graus30-Jan-07 18:36 
GeneralRe: clear all values from text boxes while logging out Pin
Ankit Aneja30-Jan-07 18:45
Ankit Aneja30-Jan-07 18:45 
AnswerRe: clear all values from text boxes while logging out Pin
Martin#30-Jan-07 19:21
Martin#30-Jan-07 19:21 
Questionreplacement for Thread.Suspend(), Thread.Resume() ? Pin
michal.kreslik30-Jan-07 18:01
michal.kreslik30-Jan-07 18:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.