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

C#

 
Questionhorizontal scrollbar for ListView component in my WinForm Pin
a#@20-Sep-06 2:47
a#@20-Sep-06 2:47 
QuestionFunction method Pin
Kasic Slobodan20-Sep-06 2:45
Kasic Slobodan20-Sep-06 2:45 
AnswerRe: Function method Pin
User 665820-Sep-06 2:55
User 665820-Sep-06 2:55 
QuestionRe: Function method Pin
Kasic Slobodan20-Sep-06 5:34
Kasic Slobodan20-Sep-06 5:34 
AnswerRe: Function method Pin
S. Senthil Kumar20-Sep-06 5:54
S. Senthil Kumar20-Sep-06 5:54 
GeneralRe: Function method Pin
Kasic Slobodan20-Sep-06 6:32
Kasic Slobodan20-Sep-06 6:32 
GeneralRe: Function method Pin
Kasic Slobodan20-Sep-06 6:42
Kasic Slobodan20-Sep-06 6:42 
QuestionExposing C# to COM / Inheritance of objects/interfaces Pin
Adam Clauss20-Sep-06 2:21
Adam Clauss20-Sep-06 2:21 
First, I have ComVisible set to true for the entire assembly.

I have (abstract) base class A. There are interfaces IA and IAEvents for accessing properties of this object and exposing events.

[ClassInterface(ClassInterfaceType.None), ComSourceInterfaces(typeof(IAEvents))]
public abstract class A : IA
{
...
}

I then have a derived class B and an interface IB (IB also derives from IA).

public class B : A, IB
{
...
}

Given an instantiation of B, I can access (from COM) properties/methods defined in either IA or IB.

However, when I then add a IBEvents (deriving from IAEvents) and change class B to:

[ClassInterface(ClassInterfaceType.None), ComSourceInterfaces(typeof(IBEvents))]
public class B : A, IB
{
...
}

I can no longer access methods/properties defined from A/IA. Only those defined at the B level. Commenting out the attributes on B will make it work, but of course the new events from IBEvents do not exist. Is there some wierd trick with regards to inheritance and COM that is preventing this? Is it still possible to do what I want? I intend to have a great many classes deriving from A each with their own unique set of properties and events in addition to the 'base' ones defined in A.
Ideas?

Adam Clauss

QuestionTrim textbox Pin
Yustme20-Sep-06 2:14
Yustme20-Sep-06 2:14 
QuestionRe: Trim textbox Pin
Sebastian Schneider20-Sep-06 2:29
Sebastian Schneider20-Sep-06 2:29 
AnswerRe: Trim textbox Pin
Yustme20-Sep-06 2:39
Yustme20-Sep-06 2:39 
GeneralRe: Trim textbox Pin
J4amieC20-Sep-06 2:54
J4amieC20-Sep-06 2:54 
GeneralRe: Trim textbox Pin
Yustme20-Sep-06 3:10
Yustme20-Sep-06 3:10 
GeneralRe: Trim textbox Pin
Sebastian Schneider20-Sep-06 3:21
Sebastian Schneider20-Sep-06 3:21 
GeneralRe: Trim textbox Pin
Yustme20-Sep-06 3:52
Yustme20-Sep-06 3:52 
QuestionMicrosecond timers/delays Pin
sjembek20-Sep-06 2:12
sjembek20-Sep-06 2:12 
AnswerRe: Microsecond timers/delays Pin
S. Senthil Kumar20-Sep-06 6:01
S. Senthil Kumar20-Sep-06 6:01 
GeneralRe: Microsecond timers/delays Pin
sjembek27-Sep-06 1:52
sjembek27-Sep-06 1:52 
QuestionHow to put a clickable button on a PropertyGrid ? Pin
sharongav20-Sep-06 1:35
sharongav20-Sep-06 1:35 
QuestionError On Running Project Of SMS Pin
manishgkumar20-Sep-06 1:27
manishgkumar20-Sep-06 1:27 
QuestionProblem in Combobox Itemdata Pin
M Riaz Bashir20-Sep-06 1:24
M Riaz Bashir20-Sep-06 1:24 
QuestionHow to call Page_Load event from other aspx file.? Pin
irkahc20-Sep-06 1:00
irkahc20-Sep-06 1:00 
AnswerRe: How to call Page_Load event from other aspx file.? Pin
Christian Graus20-Sep-06 1:17
protectorChristian Graus20-Sep-06 1:17 
GeneralRe: How to call Page_Load event from other aspx file.? Pin
irkahc20-Sep-06 2:21
irkahc20-Sep-06 2:21 
GeneralRe: How to call Page_Load event from other aspx file.? Pin
J4amieC20-Sep-06 2:52
J4amieC20-Sep-06 2:52 

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.