c# - Activate a (COM Interop based) ActiveX contol using registration free com -


I have a (COM Interop based) ActiveX contol which I am trying to use free com with registration. When control load control is inactive (event does not respond, not completely render control).

After more searching I found out that COM objects using reg-free-com to set the miscStatus attribute correctly to initialize the initial position. I know how to use it with a ComLloss that matches a native COM object.

1) What is the clrClass element that corresponds to a COM-interop object for the following

  & lt ;? ComClass CLSID = "{qqqqqqqq-wwww-eeee -rrr-00C0F0283628}" tlbid = "{xxxxxxxx-yyyy-zzzz-aaaa-0000F8754DA1}" Thredingmodel = "both" Project = "Some Compaini. Some Oelai control" description = "Some ActiveX control "miscStatus =" recomposeonresize, interiors, active, when visible, nouiactivate "& Gt; 2) I am using COM client view if FoxPro is (1) not possible, what can I do in VFP to activate the inactive ActiveX control. (I dont mind can use to find VB or so if I par FoxPro C # input)  

Currently I have the following

  this.AddObject ( 'OleControl1' Tried, 'All Control', 'Some Companie, Some Hole Control'). Ol control Activate Ato = 3 it Ole control1 Visual =. this. OleControl1.SetFocus  

But I have to click to focus before passing the Olekantrol 1 events to click the mouse on your Sevetments so I do the needful at him twice, Never Focus I do control, so want to work as the miscStatus value is set to "nouiactivate".

3) Is there any other way of accomplishing what I want to do?

The swan passent, here is the list of current assembly.dll.manifest. Formatting made it unreadable in the comment.

  & lt ;? Xml version = "1.0" encoding = "UTF-8" standalone = "yes"? & Gt; & Lt; Assembly xmlns = "vase: schemas-microsoft-com: asm.v1" manifestVersion = "1.0" & gt; & Lt; Assembly id name = "assembly" version = "1.0.0.0" type = "win32" publicKeyToken = "wwwwwwwwwwwwwwww" /> & Lt; clrClass name = "SomeCompany.SomeOleControl" CLSID = "{qqqqqqqq-wwww-eeee-rrrr-00C0F0283628}" ProgID = "SomeCompany.SomeOleControl" threadingModel = "both" / & gt; & Lt; File name = "assembly.tlb" & gt; & Lt; typelib tlbid = "{XXXXXXXX-yyyy-ZZZZ-aaaa-0000F8754DA1}" version = "1.0" helpdir = "" flag = "hasdiskimage" / & gt; & Lt; / File & gt; & Lt; / Assembly & gt;  

I checked "oletypeallowed" property olecontrol1 and it was 1 (embedded OLE Object) instead of -2 (Active X Object), the object is not normally activated.

It seems that this is a visible FoxPro problem. I will post a new question about it.


Comments