[求救]如何将VB6中的TextWidth升级到VB.NET
VB6的代码
Printer.Font = VB6.FontChangeName(Printer.Font, "宋体")
Printer.Font = VB6.FontChangeSize(Printer.Font, 10.5)
Printer.ScaleMode = vbMillimeters
MsgBox(Printer.TextWidth("序号") & "," & Printer.TextHeight("序号"))
我想得到一个字符串的打印长度,单位一定要用毫米
请高手指教在VB.NET中如何实现