Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: Writing values from ArrayList into a text box Pin
Rizwan Rathore7-May-06 23:54
Rizwan Rathore7-May-06 23:54 
QuestionListView.Items.ContainsKey ?? Pin
student_rhr7-May-06 7:09
student_rhr7-May-06 7:09 
AnswerRe: ListView.Items.ContainsKey ?? Pin
Larantz7-May-06 8:32
Larantz7-May-06 8:32 
GeneralRe: ListView.Items.ContainsKey ?? Pin
student_rhr7-May-06 10:08
student_rhr7-May-06 10:08 
QuestionReflection Problem ! Pin
User 20930737-May-06 6:35
User 20930737-May-06 6:35 
AnswerRe: Reflection Problem ! Pin
rudy.net7-May-06 7:23
rudy.net7-May-06 7:23 
GeneralRe: Reflection Problem ! Pin
User 20930737-May-06 18:26
User 20930737-May-06 18:26 
AnswerRe: Reflection Problem ! Pin
Stefan Troschuetz7-May-06 7:32
Stefan Troschuetz7-May-06 7:32 
This should do the trick:
Assembly asm = Assembly.LoadFrom("MyAssembly.dll");            
Type t = asm.GetType("MyNamespace.MyClass");
Object obj = Activator.CreateInstance(t);
PropertyInfo pInfo = t.GetProperty("StructVar");
PropertyInfo pInfo2 = pInfo.PropertyType.GetProperty("IntVar");
pInfo2.SetValue(1, pInfo.GetValue(obj, null), null); 



"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

www.troschuetz.de

-- modified at 13:33 Sunday 7th May, 2006
GeneralRe: Reflection Problem ! Pin
S. Senthil Kumar7-May-06 7:39
S. Senthil Kumar7-May-06 7:39 
GeneralRe: Reflection Problem ! Pin
Stefan Troschuetz7-May-06 8:12
Stefan Troschuetz7-May-06 8:12 
AnswerRe: Reflection Problem ! Pin
S. Senthil Kumar7-May-06 7:36
S. Senthil Kumar7-May-06 7:36 
GeneralRe: Reflection Problem ! Pin
User 20930737-May-06 20:55
User 20930737-May-06 20:55 
Questioninsert into error Pin
Susuko7-May-06 5:52
Susuko7-May-06 5:52 
AnswerRe: insert into error Pin
Shajeel7-May-06 22:06
Shajeel7-May-06 22:06 
GeneralRe: insert into error Pin
Susuko8-May-06 10:18
Susuko8-May-06 10:18 
QuestionFiltering records in a DataGrid Pin
ventomito7-May-06 4:08
ventomito7-May-06 4:08 
AnswerRe: Filtering records in a DataGrid Pin
rudy.net7-May-06 4:30
rudy.net7-May-06 4:30 
GeneralRe: Filtering records in a DataGrid Pin
ventomito7-May-06 5:07
ventomito7-May-06 5:07 
GeneralRe: Filtering records in a DataGrid Pin
Sean897-May-06 5:32
Sean897-May-06 5:32 
GeneralRe: Filtering records in a DataGrid Pin
ventomito7-May-06 5:53
ventomito7-May-06 5:53 
GeneralRe: Filtering records in a DataGrid Pin
Sean897-May-06 6:01
Sean897-May-06 6:01 
GeneralRe: Filtering records in a DataGrid Pin
ventomito7-May-06 6:50
ventomito7-May-06 6:50 
GeneralRe: Filtering records in a DataGrid Pin
Sean897-May-06 7:24
Sean897-May-06 7:24 
Questionwhy does my application flicker??!!! Pin
Susuko7-May-06 1:26
Susuko7-May-06 1:26 
AnswerRe: why does my application flicker??!!! Pin
Christian Graus7-May-06 1:32
protectorChristian Graus7-May-06 1:32 

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.