Q:
I copied and pasted the console application code in windows form but it
produces some errors:
1 'Create' is not a member of 'System.Drawing.Font'
2 'StandardType1Font' is not a member of 'System.Drawing.Font'
3 Variable 'e' hides a variable in an enclosing block.
I code in VB.net.
-----
A:
It seems these are basic namespace collision problems. If you expand
the namespace qualifier the errors should go away. For example:
#C
pdftron.PDF.Font myfont = ...
VB.NET
Dim myfont As pdftron.PDF.Font = ...
instead of:
#C
Font myfont = ...
VB.NET
Dim myfont As Font = ...