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

我有一個Image與Text
想要在Image裡面點一點
而Text就能顯示出座標值
希望VB高手幫解決

2006-11-22 10:59:38 · 1 個解答 · 發問者 ☆★小猴子★☆ 2 in 電腦與網際網路 程式設計

假如是在VBA環境下程式上需要做修改嗎?
因原本我是在VB6.0寫的
可是將同樣程式碼貼在VBA上
但卻出現『事件程序的宣告與同名事件的描述不相符』
大大曉得如何解決嗎?

2006-11-22 11:28:54 · update #1

1 個解答

VB6.0:Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)    Text1.Text = "X= " & X & "  Y= " & YEnd Sub Excel:Private Sub Image1_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)    TextBox1.Text = "X= " & X & "  Y= " & YEnd SubAccess:Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)    Text1 = "X= " & X & "  Y= " & YEnd SubWord:Private Sub Image1_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)    TextBox1.Text = "X= " & X & "  Y= " & YEnd Sub

2006-11-22 11:13:18 · answer #1 · answered by W.J.S. 7 · 0 0

fedest.com, questions and answers