Why does this cause a crash once I try to minimize the the app? The line in parentheses is the offender...but I need it to be set to this size becuase of where the cmdbuttons are for when the window state is 0 or 2.

Private Sub Form_Resize()
'This is activated every time that you resize the form
'either by controlbox or mouse resize
'eg.
txtNotepad.Width = Main.Width - 120
( txtNotepad.Height = Main.Height - 1150 )
cmdOpen.Top = Main.Height - 1100
cmdSave.Top = Main.Height - 1100
cmdExit.Top = Main.Height - 1100
End Sub

Daniel Christie