I am trying to embed an ActicveX control into a Windows form. The control is an Autodesk DWF viewer. I have it in the form and added references, but when I run I get these errors in the Immedite window. Everything seems to work like it should but I want to what these errors mean and how to fix them.
System.Windows.Data Error: 39 : BindingExpression path error: 'QuickAccessToolBar' property not found on 'object' ''ComponentSettings' (HashCode=13062350)'. BindingExpression:Path=QuickAccessToolBar.Theme.CurrentBrush; DataItem='ComponentSettings' (HashCode=13062350); target element is 'Border' (Name=''); target property is 'Background' (type 'Brush')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='' BindingExpression:Path=Id; DataItem='RibbonMenuButton' (HashCode=29811240); target element is 'Button' (Name='mMinimizeButtonExecute'); target property is 'AutomationId' (type 'String')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='' BindingExpression:Path=Id; DataItem='RibbonMenuButton' (HashCode=29811240); target element is 'RibbonMinimizeToggleButton' (Name='mMinimizeButtonFlyout'); target property is 'AutomationId' (type 'String')
The code for the form:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1 Inherits System.Windows.Forms.Form
'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(Form1))
Me.AxCExpressViewerControl1 = New AxExpressViewerDll.AxCExpressViewerControl
CType(Me.AxCExpressViewerControl1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'AxCExpressViewerControl1
'
Me.AxCExpressViewerControl1.Enabled = True
Me.AxCExpressViewerControl1.Location = New System.Drawing.Point(21, 39)
Me.AxCExpressViewerControl1.Name = "AxCExpressViewerControl1"
Me.AxCExpressViewerControl1.OcxState = CType(resources.GetObject("AxCExpressViewerControl1.OcxState"), System.Windows.Forms.AxHost.State)
Me.AxCExpressViewerControl1.Size = New System.Drawing.Size(165, 190)
Me.AxCExpressViewerControl1.TabIndex = 0
'
'Form1
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(284, 262)
Me.Controls.Add(Me.AxCExpressViewerControl1)
Me.Name = "Form1"
Me.Text = "Form1"
CType(Me.AxCExpressViewerControl1, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
End Sub
Friend WithEvents AxCExpressViewerControl1 As AxExpressViewerDll.AxCExpressViewerControl
End Class
Please let me know if you know of anyway to fix these errors, or at least find where I might be able to fix them.
Thanks