Tried the following :
IntPtr hWnd = Process.GetCurrentProcess().MainWindowHandle;
IntPtr hSystemMenu = GetSystemMenu( hWnd, false );
EnableMenuItem( hSystemMenu, SC_CLOSE, MF_DISABLED );
RemoveMenu( hSystemMenu, SC_CLOSE, MF_BYCOMMAND );
It did not work for me.
Please help!