|
-
Sep 20th, 2002, 12:11 PM
#1
Thread Starter
Hyperactive Member
Control Move Error *Resolved*
When I resize my form and move the control to the bottom right of the new window I get an error trying to set the control top to anything more than 4500 twips. It says the top value is too large. I have a text box that expands to the whole size of the window and it works fine unless I try to move the top value pass 4500 twips. Is this a general problem? How do I get a control to the bottom right corner of the screen if I can't set the top of the control. The left of the control works fine. I just can't get it any lower than 4500 twips.
Help!
Last edited by Ephesians; Sep 20th, 2002 at 01:19 PM.
-
Sep 20th, 2002, 12:14 PM
#2
Can you show us how you are doing it? I assume you are using .Move method?
-
Sep 20th, 2002, 12:15 PM
#3
-= B u g S l a y e r =-
-
Sep 20th, 2002, 12:22 PM
#4
Thread Starter
Hyperactive Member
how does on error resume next help me if it doesn't move the control?
anyway I'm using VBA so there is no move method but here's what I'm using. The control I'm using is a box control.
VB Code:
If Me.WindowHeight <= 5500 Then
Box3.Top = Me.WindowHeight - Box3.Height
Else
Box3.Top = 5000
End If
Box3.Left = Me.WindowWidth - Box3.Width - 10
-
Sep 20th, 2002, 12:23 PM
#5
-
Sep 20th, 2002, 12:29 PM
#6
Thread Starter
Hyperactive Member
Damnit Peet! Why does that work?! Just ignore the error and and the control will go where I want it to?! What kind of programming logic is that?!!!!
-
Sep 20th, 2002, 12:35 PM
#7
-
Sep 20th, 2002, 12:37 PM
#8
Originally posted by Ephesians
What kind of programming logic is that?!!!!
Programming logic that helps you meet deadlines.
-
Sep 20th, 2002, 12:38 PM
#9
Originally posted by Hack
Programming logic that helps you meet deadlines.
But is still doesn't solve the problem. The problem isn't so much the error as the FACT THAT THE CONTROL STILL WILL NOT MOVE!
-
Sep 20th, 2002, 12:44 PM
#10
-
Sep 20th, 2002, 12:46 PM
#11
I don't.... but then I have the luxury of using the Video Soft Elastic control, so I don't need to worry about it. But.... Ususaly when I've encountered this kind of problem, it's when the user hits the minimize button, in which case I check the WindowState first, and skip everything if I'm minimizing.
-
Sep 20th, 2002, 12:52 PM
#12
-= B u g S l a y e r =-
-
Sep 20th, 2002, 12:58 PM
#13
-= B u g S l a y e r =-
just for the record... I totally agree with you techgnome, proper errorhandling is a must
-
Sep 20th, 2002, 01:19 PM
#14
Thread Starter
Hyperactive Member
The funny thing is.. the control will actually move to where I've dragged it if I ignore the error...
Damned if I know why..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|