Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to make one column of ListView invisable? Pin
led mike30-Mar-07 12:01
led mike30-Mar-07 12:01 
GeneralRe: How to make one column of ListView invisable? Pin
Khoramdin30-Mar-07 19:32
Khoramdin30-Mar-07 19:32 
GeneralRe: How to make one column of ListView invisable? Pin
led mike2-Apr-07 4:27
led mike2-Apr-07 4:27 
QuestionStreamreader and read file Pin
Saamir30-Mar-07 10:35
Saamir30-Mar-07 10:35 
AnswerRe: Streamreader and read file Pin
Dave Kreskowiak30-Mar-07 11:53
mveDave Kreskowiak30-Mar-07 11:53 
GeneralRe: Streamreader and read file Pin
Saamir30-Mar-07 12:00
Saamir30-Mar-07 12:00 
AnswerRe: Streamreader and read file Pin
Vasudevan Deepak Kumar31-Mar-07 4:30
Vasudevan Deepak Kumar31-Mar-07 4:30 
QuestionTrouble calling COM Object Method from C# object Pin
Brent Lamborn30-Mar-07 9:10
Brent Lamborn30-Mar-07 9:10 
Here is the code I'm having trouble with:
Type oBB = Type.GetTypeFromProgID("MyNamespace.MyClass");
Object o = Activator.CreateInstance(oBB);

//Call BuildBook
Object oResult = oBB.InvokeMember("BuildBook", System.Reflection.BindingFlags.InvokeMethod, null, o, new object[]
{ (int)Job.JobID, @"\\folder\in\" + Job.FinalFile.ToString(), Convert.ToBoolean(Job.Contribidx) });


//Get the name of the type of object returned by BuildBook and its cName property
Type oRes = oResult.GetType();
String sName = (String)oRes.InvokeMember("cName", BindingFlags.GetProperty, null, o, null);

The problem is that when I check sName, it gives me the cName property of MyClass rather than the cName property of the object returned by BuildBook. Does anyone see any obvious mistakes in my code?






"Half this game is ninety percent mental." - Yogi Berra

If you can read thank a teacher, if you can read in English, thank a Marine.

AnswerRe: Trouble calling COM Object Method from C# object Pin
Phillip M. Hoff31-Mar-07 16:05
Phillip M. Hoff31-Mar-07 16:05 
GeneralRe: Trouble calling COM Object Method from C# object Pin
Brent Lamborn2-Apr-07 3:44
Brent Lamborn2-Apr-07 3:44 
QuestionHow do I exit the program from the main form's constructor Pin
dino209430-Mar-07 9:03
dino209430-Mar-07 9:03 
AnswerRe: How do I exit the program from the main form's constructor Pin
Leslie Sanford30-Mar-07 9:07
Leslie Sanford30-Mar-07 9:07 
GeneralRe: How do I exit the program from the main form's constructor Pin
dino209430-Mar-07 9:09
dino209430-Mar-07 9:09 
AnswerRe: How do I exit the program from the main form's constructor Pin
Thomas Stockwell1-Apr-07 4:37
professionalThomas Stockwell1-Apr-07 4:37 
Questionverify user can access a file Pin
minmanmax30-Mar-07 8:43
minmanmax30-Mar-07 8:43 
AnswerRe: verify user can access a file Pin
Ed.Poore30-Mar-07 9:09
Ed.Poore30-Mar-07 9:09 
GeneralRe: verify user can access a file Pin
minmanmax30-Mar-07 10:17
minmanmax30-Mar-07 10:17 
GeneralRe: verify user can access a file Pin
Ed.Poore30-Mar-07 12:24
Ed.Poore30-Mar-07 12:24 
GeneralRe: verify user can access a file Pin
minmanmax30-Mar-07 12:52
minmanmax30-Mar-07 12:52 
GeneralRe: verify user can access a file Pin
Ed.Poore30-Mar-07 23:19
Ed.Poore30-Mar-07 23:19 
GeneralRe: verify user can access a file Pin
minmanmax2-Apr-07 8:51
minmanmax2-Apr-07 8:51 
AnswerRe: verify user can access a file Pin
Vasudevan Deepak Kumar31-Mar-07 4:29
Vasudevan Deepak Kumar31-Mar-07 4:29 
QuestionGet n Set Pin
umashankergr830-Mar-07 8:34
umashankergr830-Mar-07 8:34 
AnswerRe: Get n Set [modified] Pin
J$30-Mar-07 8:40
J$30-Mar-07 8:40 
GeneralRe: Get n Set Pin
Colin Angus Mackay30-Mar-07 8:59
Colin Angus Mackay30-Mar-07 8:59 

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.