|
-
May 10th, 2002, 12:22 PM
#1
Thread Starter
Hyperactive Member
tough one
ok, someone give me a hand ere pls becos im well stuck...
im trying to detect whether my form is maxmized, if anyone knows an easier way tell me quick! otherwise read on..
VB Code:
Private Sub Form_Resize()
End Sub
im using that method along with Screen.Height and Me.Height (or ScaleHeight) and was using an if to check if they matched, sounds simple at first yea but in practise it doesnt work as expected 
Me.Height (when form is maximized) equals the Screen.Height but thats with the taskbar subtracted, so i could just use a (Sceen.Height - [Taskbar Height]) but you can easily change the height of the taskbar, so people that had it higher would get a bug on my form where it cant be resized (the size of form is being saved to registry)
anyone know how to get around this or another method to detect if the form is maximized?
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
|