|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Resume Next
I am using the following code to try and ignore errors in the resize module, but it still kicks up the error...
Private Sub Form_Resize() On Error Resume Next Me.DataGrid.Height = Me.ScaleHeight - Me.Picture1.Height - 40 End Sub |
|
#2
|
|||
|
|||
|
And "the error" is what?
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
Run-time Error '380'
Invalid Property Value |
|
#4
|
|||
|
|||
|
Quote:
check if msgbox Me.ScaleHeight - Me.Picture1.Height - 40 is negative why Me.ScaleHeight ???, it's not Me.height Scale is something like Zoom for me. |
|
#5
|
|||
|
|||
|
Me.ScaleHeight - Me.Picture1.Height - 40 is a negative, so have just got round the problem with an IF statement.
Just thought that using the resume next would ignore the error. |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Resume Next |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|