English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
所有分類

我想要在 PictureBox 上畫上點,並且可以在點上寫上數字應該怎麼?
( 例如: 第1點寫上1,第2點寫上2......以此類推 )

2006-10-01 20:44:01 · 2 個解答 · 發問者 ? 1 in 電腦與網際網路 程式設計

ㄚ戊你寫的我不太懂ㄟ

2006-10-01 22:03:42 · update #1

2 個解答

Dim I As IntegerPrivate Sub Form_Load()    Picture1.AutoRedraw = True    Picture1.FillStyle = 0    I = 1End SubPrivate Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)    Dim R As Integer, S As String        With Picture1         S = I         R = .TextHeight(S)         If .TextWidth(S) > R Then R = .TextWidth(S)         R = R * Sqr(2) \ 2 '點的半徑        .FillColor = vbWhite '點的顏色          Picture1.Circle (X, Y), R, .FillColor '畫點(圓)         .CurrentX = X - .TextWidth(S) \ 2         .CurrentY = Y - .TextHeight(S) \ 2         Picture1.Print S    End With    I = I + 1End Sub

2006-10-02 10:15:04 · answer #1 · answered by W.J.S. 7 · 0 0

dim i '在最前面宣告為區域變數....pset (x,y)currentx=x+10i=i+1? i

2006-10-02 12:53:19 補充:
實際去做就會懂了吧...阿戊只是照你問的給方法及關鍵字...題目上也看不出你實際的做法呀!~

2006-10-01 20:53:34 · answer #2 · answered by ? 7 · 0 0

fedest.com, questions and answers