BUMP for any feedback? Does anyone know if this is even possible? This has nothing to do with UserControl.Site.DesignMode, because that doesn't get exposed to COM. So will always return FALSE when the ActiveX is used in an application. I'm looking for the COM interface implimentation of how a VB 6.0 ActiveX interacts with it's container....
dequadin
Posts
-
Accessing ActiveX Ambient Properties from C# -
Accessing ActiveX Ambient properties?BUMP for any feedback? Does anyone know if this is even possible? This has nothing to do with UserControl.Site.DesignMode, because that doesn't get exposed to COM. So will always return FALSE when the ActiveX is used in an application. I'm looking for the COM interface implimentation of how a VB 6.0 ActiveX interacts with it's container....
-
Accessing ActiveX Ambient properties?Sorry for the double post, but I didn't get any love on the C# forum, thought I'd try my luck here. Please could someone point me in the right direction. I've written an ActiveX control in C# and it's working well except for one "small" problem. I'm trying to access the ambient properties of the ActiveX container and am drawing blank. I'm trying to replicate the following VB 6.0 functionality in C#: Ambient Properties:
ActiveXAmbientMode = UserControl.Ambient.UserMode
Ambient Properties changed event:
Private Sub UserControl_AmbientChanged(PropertyName As String)
If PropertyName = "UserMode" Then
' Do Stuff Here
End If
End SubFrom what I can find out so far is that this "might" have something do to with implimenting the IOLEControl COM interface? But I can find NO examples of this ever being done? Anyone ever managed to get this working because I can't find any useful info on this anywhere?
-
Accessing ActiveX Ambient Properties from C#I hope this is the correct forum for this issue. Please could someone point me in the right direction. I've written an ActiveX control in C# and it's working well except for one "small" problem. I'm trying to access the ambient properties of the ActiveX container and am drawing blank. I'm trying to replicate the following VB 6.0 functionality in C#: Ambient Properties:
ActiveXAmbientMode = UserControl.Ambient.UserMode
Ambient Properties changed event:
Private Sub UserControl_AmbientChanged(PropertyName As String)
If PropertyName = "UserMode" Then
' Do Stuff Here
End If
End SubFrom what I can find out so far is that this "might" have something do to with implimenting the IOLEControl COM interface? But I can find NO examples of this ever being done? Anyone ever managed to get this working because I can't find any useful info on this anywhere?