Results 1 to 7 of 7

Thread: Invalid procedure call or argument... What is wrong with this code?

Threaded View

  1. #1

    Thread Starter
    Lively Member reisve's Avatar
    Join Date
    Mar 2005
    Posts
    118

    Angry Invalid procedure call or argument... What is wrong with this code?

    Hi I have this code:
    VB Code:
    1. 1 Private Sub Form_Resize()
    2. 2    If UseCommBox <> 0 Then
    3. 3      txtTerm.Move 0, 0, frmTerminal.ScaleWidth, frmTerminal.ScaleHeight - sbrStatus.Height - txtSendText.Height
    4. 4       txtSendText.Move 0, txtTerm.Height, frmTerminal.ScaleWidth, 315
    5. 5    ElseIf UseCommBox = 0 Then
    6. 6       txtTerm.Move 0, 0, frmTerminal.ScaleWidth, frmTerminal.ScaleHeight - sbrStatus.Height
    7. 7     End If
    8. 8 End Sub

    everytime I ru the application, the form resizes ok, but gives me this error message:

    Run-time error '5':
    Invalid procedure call or argument

    Any ideas why?

    Thanks

    Virginio
    Last edited by reisve; Aug 10th, 2006 at 07:15 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width