I converted an ArcMap VBA code to a Visual Studio dll. In doing so I had to reference a new namespace "stdole" so my graphic label would show in ArcMap. The label works on my computer, but does not work on other computers that do not have VS 2010. I'm guessing it is because the namespace stdole.dll is not on the other computers? Are there any alternative namespaces that I can reference that the older computers might have? Below is the VBA pre and raw VB.NET post code conversion (<<<< this defines the code statement where the stdole namespace was needed).
VBA version
'Get the point location
Set pPoint = pFeature.Shape
pTextElement.Text = strLabel 'Add the text string to the Text Symbol
Dim myFont As IFontDisp
Set myFont = New StdFont
myFont.Name = "Courier New"
myFont.Size = 1
pTextElement.Symbol.Size = 5# 'Added Text Symbol Size
pTextElement.Symbol.Font = myFont
pElement.Geometry = pPoint
pGraphicsContainer.AddElement pTextElement, 0
VB.NET version
'Get the point location
pPoint = pFeature.Shape
pTextElement.Text = strLabel 'Add the text string to the Text Symbol
Dim VB6 As Object VB6 = Nothing
Dim myFont As System.Drawing.Font
myFont = System.Windows.Forms.Control.DefaultFont.Clone()
myFont = VB6.FontChangeName(myFont, "Courier New")
myFont = VB6.FontChangeSize(myFont, 1)
pTextElement.Symbol.Size = 5#
pTextElement.Symbol.Font = VB6.FontChangeName(pTextElement.Symbol.Font, myFont.Name) '<<<< stdole namespace needed
pElement.Geometry = pPoint
pGraphicsContainer.AddElement(pTextElement, 0)