Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Member already exists

Status
Not open for further replies.

Ireland1978

Programmer
Sep 29, 2005
17
GB
Code:
Dim currentX As Single
Dim currentY As Single
Dim isDrawing As Boolean

Private Sub pic1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    isDrawing = True
    currentX = X
    currentY = Y
End Sub

Private Sub pic1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If isDrawing Then
        pic1.Line (currentX, currentY)-(X, Y)
    End If
    
End Sub

I'm trying to write a code that draws lines in a picture box. When I go to run the code above, I get the follwing message:
Member already exists in a object module from which this object module derives in reference to the following line of code:
Code:
Dim currentX As Single
 
CurrentX is a Property of several standard VB object. Have a look in VBHelp, then change the variable name.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top