Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 28th, 2005, 08:56 AM
Fowler_ko Fowler_ko is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Cumbria, UK
Posts: 277 Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 5 Days 10 h 24 m 33 sec
Reputation Power: 84
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

Reply With Quote
  #2  
Old September 28th, 2005, 03:55 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
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

Reply With Quote
  #3  
Old September 29th, 2005, 11:07 AM
Fowler_ko Fowler_ko is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Cumbria, UK
Posts: 277 Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 5 Days 10 h 24 m 33 sec
Reputation Power: 84
Run-time Error '380'

Invalid Property Value

Reply With Quote
  #4  
Old September 30th, 2005, 11:10 AM
Darius Darius is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 108 Darius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 16 m 54 sec
Reputation Power: 5
Quote:
Originally Posted by Fowler_ko
Run-time Error '380'

Invalid Property Value


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.

Reply With Quote
  #5  
Old October 3rd, 2005, 07:15 AM
Fowler_ko Fowler_ko is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Cumbria, UK
Posts: 277 Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level)Fowler_ko User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 5 Days 10 h 24 m 33 sec
Reputation Power: 84
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.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Resume Next


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT