Anyone know how I would go about disabling the Close (X) button on the IE window? I can't find how to do this anywhere for .net..But I found a way to do it in VB6. At least I think this would do it. It seems to be there should be a way in .net. Below is what I found for vb6.<BR><BR>Public Sub DisableX(lhwnd As Long)<BR>Dim lSysMenu As Long<BR>Dim lItemCount As Long<BR>Dim lRet As Long<BR>lSysMenu = GetSystemMenu(lhwnd, False)<BR>lItemCount = GetMenuItemCount(lSysMenu)<BR>lRet = RemoveMenu(lSysMenu, lItemCount - 1, MF_BYPOSITION)<BR>lRet = RemoveMenu(lSysMenu, lItemCount - 2, MF_BYPOSITION)<BR>lRet = RemoveMenu(lSysMenu, lItemCount - 3, MF_BYPOSITION)<BR>lRet = RemoveMenu(lSysMenu, lItemCount - 4, MF_BYPOSITION)<BR>End Sub