I might be missing something, because I do not quite understand what the problem is.

As far as I can figure out, you want the form to be normal. When the user double-clicks the Titlebar, the form must maximize. When the user double-clicks the title bar again, the form must return back to normal.

The form already does this automatically. You do not need to add any code at all.

Shrog