从vb6到vb.net的转换

从vb6到vb.net的转换,vb.net,vb6,vb6-migration,Vb.net,Vb6,Vb6 Migration,我需要从vb6转换到vb.net (picturebox1.TextWidth(RsSearch.Fields(Fs.FieldName)) / 2) picturebox1.Line (x, y) - ((Width +x) / Reducer, (y+ Height) / Reducer), Fs.LineColor 也可以从vb6到vb.net (picturebox1.TextWidth(RsSearch.Fields(Fs.FieldName)) / 2) picturebox1

我需要从vb6转换到vb.net

(picturebox1.TextWidth(RsSearch.Fields(Fs.FieldName)) / 2)
picturebox1.Line (x, y) - ((Width +x) / Reducer, (y+ Height) / Reducer), Fs.LineColor
也可以从vb6到vb.net

(picturebox1.TextWidth(RsSearch.Fields(Fs.FieldName)) / 2)
picturebox1.Line (x, y) - ((Width +x) / Reducer, (y+ Height) / Reducer), Fs.LineColor
也可以从vb6到vb.net

picturebox1.DrawWidth = Int(Fs.LineWidth / 2)
在vb.net中对于picturebox中的专有hdc意味着什么
picturebox1.hdc

在vb.net中,您可以在Paint事件中的picturebox控件上,或在picturebox的图像上使用Graphics类来实现这些绘图功能。例如,要绘制一条线:

Private Sub PictureBox1_Paint(sender As Object, e As PaintEventArgs) Handles PictureBox1.Paint
  e.Graphics.DrawLine...
End Sub


我们这里不转换代码,我们帮助解决编程问题,而不是翻译代码。请转载你做了什么,为什么它不工作。