Questions tagged [axhost]
12 questions
8
votes
2 answers
Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown
I am getting an error in my simple project.
This is my code:
if (axZKFPEngX1.InitEngine() == 0) {
label1.Text = "Connected";
}
else {
label1.Text = "Connection Failed";
}
I already added reference composites AxInterop.ZKFPEngXControl and…

autthapone
- 105
- 1
- 1
- 7
5
votes
2 answers
Adding Adobe PDF Reader COM-Control to WinForm fails
i try to add a COM-Control. The steps i take:
1. right click in toolbox
2. choose COMComponents tab and there "Adobe PDF Reader"
3. click on "OK" button
4. Now trying to Drag&Drop the Adobe PDF Reader Control into an UserControl
--> Fails with…

JoeFox
- 1,051
- 1
- 10
- 23
5
votes
3 answers
C# Windows Media Player AxHost Error: Failed to create compopnent 'AxHost'
I am trying to add a Windows Media Player object to my Windows form but it pops out an error:
Failed to create compopnent 'AxHost'. The error message follows:
'System.Reflection.ReflectionTypeLoadException: Unable to load
one or more of the…

Darren Lee
- 387
- 3
- 11
4
votes
3 answers
ActiveX initialization: AxHost.State object
I'm trying to embed a Unity3D-ActiveX control into a WPF-Form by using a WinFormsHost-Control.
Actually it works well when setting the path in the property window of VS, but when setting it in my code file it does not load anything. This is a known…

Felix K.
- 6,201
- 2
- 38
- 71
3
votes
1 answer
AxHost.GetPictureFromIPicture() method missing, retrieving picture (attachment) from MS Access database
I'm trying to use AxHost.GetPictureFromIPicture() to get a GIF image (saved as an attachment type) from MS Access 2013 database file (*.accdb) - convert it to Image so I can display it in a PictureBox. But the method is not there! :( Am I missing…

Forrest G
- 31
- 1
2
votes
1 answer
ActiveX controls only accept fonts that are defined in GraphicsUnit.Point. Parameter name: font
I have C#.Net 3.5 project in VS2010 where I would like to add ActiveX Control dynamically and I followed article
http://www.codeproject.com/Articles/10822/Dynamically-adding-ActiveX-controls-in-managed-cod
Type type =…

Saqwes
- 325
- 3
- 12
1
vote
0 answers
Error using AxWebBrowser after disabling Refactor
i was using AxWebBrowser (Microsoft WebBrowser // ieframe.dll) but when i decided to disable Refactor addon for Visual Studio (2017), its not working anymore at all.
And whenever i try to add an axWebBrowser to my form it throws this error:
PS: I…

user3916429
- 562
- 6
- 25
1
vote
4 answers
Make an ActiveX control work without a form?
We are using Topaz Signature pads. They provide their APIs in the from of an ActiveX control which is to be put on a Winform control. Well, the way our project will work we do not want to have a form(at least not visible). We just want for the…

Earlz
- 62,085
- 98
- 303
- 499
1
vote
1 answer
missing Axhost after using axImp.exe
I hope someone could help me out.
My original task:
I want to write a c# program that silently connects local users of a remote machine (win server 2008).
technical problem
I have found a code_project article that does exactly what I need…

Elad Benda
- 35,076
- 87
- 265
- 471
1
vote
1 answer
How to pass keyboard accelerators from Axhost to containing .NET form
I have an Activex control hosted inside a .NET form using Axhost as a wrapper.
I've defined a shortcut key in the ProcessCmdKey method of the form, but when thye focus is inside the Activex, the keyboard messages and events are captured and not…

G.So
- 64
- 4
0
votes
1 answer
Get more debug info from AxHost?
I'm trying to deploy an application which uses an library that embeds an ActiveX control with AxHost in C#.
When I run the installed app on our test rig I catch and present the following exception:
Unexpected exception.
This application has failed…

Presidenten
- 6,327
- 11
- 45
- 55
0
votes
1 answer
Why is my property readonly in winforms editor?
My class A inherits a class B that inherits AxHost.
My property is shown as readonly with no attributes set that would enforce this behaviour.
public int MyProperty { get; set; }

Otterprinz
- 459
- 3
- 10