我有以下代碼來設置在一個16位的顯示光標位置:定位的遷移代碼從VB6到vb.net
linCursor.x1 = VB6.PixelsToTwipsX(lblDisplay(pintCursorPos).Left) + 10
linCursor.x1 = VB6.PixelsToTwipsX(lblDisplay(pintCursorPos).Left) + 10
linCursor.X2 = VB6.PixelsToTwipsX(lblDisplay(pintCursorPos).Left) + VB6.PixelsToTwipsX(lblDisplay(pintCursorPos).Width) - 10
予需要此代碼轉換爲vb.net。任何人都可以幫助我開始嗎?
我認爲這些是在不同的容器中,因爲一個有緹協調,另一個是像素。如果沒有,那麼它做的事情很奇怪。 – Deanna 2012-03-15 15:53:08