Argh! This is driving me nuts!

I have a normal form (FormBorderStyle = Sizeable).

When the user maximizes the form, the form's border should disappear and fully cover the screen. Like so:

vb Code:
  1. Private Sub frmVideo_SizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.SizeChanged
  2.  
  3.     If Me.WindowState = FormWindowState.Maximized Then
  4.         'Remove border
  5.         Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
  6.         'Bring to front
  7.         Me.TopMost = True
  8.     End If
  9.  
  10. End Sub

Problem is, when the form gets maximized and border changed to None, the form doesn't cover the whole screen.

The form gets the same height as when it is maximized with a titlebar on top. So, the form is about 20 pixels too short, leaving most of the Windows taskbar uncovered.

So, apparently, if the FormBorderStyle changes after the form has maximized, the change in size is not corrected.

Therefore, my question is: How do I change a form's size when it's maximized or how do I change the FormBorderStyle before maximization is finished?

Thanks for any help!

Alexander.