form resizing

hypnotik
03-17-2003, 10:01 PM
wats wrong with this code?


Private Sub Form_Load()
Me.Height = Screen.Height
Me.Left = 0
Me.Top = 0
Me.Width = Screen.Width
End Sub

It doesnt work :(

hypnotik'

OnErr0r
03-17-2003, 10:16 PM
You'll want to do that in the Resize event. And .Move is more efficient:


Private Sub Form_Resize()
If WindowState <> vbMinimized Then Me.Move 0, 0, Screen.Width, Screen.Height
End Sub

hypnotik
03-17-2003, 11:49 PM
nop...didnt work...tried it

OnErr0r
03-17-2003, 11:59 PM
Works quite nicely here.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum