Link to home
Start Free TrialLog in
Avatar of Dalexan
DalexanFlag for Afghanistan

asked on

Disable close button on control box

I am creating an instance of IE and I dont want the close button to be displayed only minimize and maximize. Below is my code and the function to call the IE window from inside my Vb order entry app. I'm looking for the easiest method, even if it means disabling the whole bar and all controls. The form that is displayed will have a close button.

sAMZURL = "http://csmgr.amazon.com/operators/order.php?harp_op_id=" & MKPntObj.UserID & "&harp_dnis=" & MKPntObj.DNIS
            If g_strCompanyID = 126 Then
                'MsgBox sAMZURL
                Call LaunchIE(sAMZURL, False, False)
            End If

Private Sub LaunchIE(ByVal strUrl As String, ByVal blnToolBar As Boolean, ByVal blnStatusBar As Boolean)
    Dim objIE As Object
    Set objIE = CreateObject("InternetExplorer.Application")
    objIE.Toolbar = blnToolBar
    objIE.StatusBar = blnStatusBar
    objIE.Visible = True
    Call objIE.Navigate(strUrl)
    Set objIE = Nothing
End Sub
ASKER CERTIFIED SOLUTION
Avatar of vinnyd79
vinnyd79

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dalexan

ASKER

Wow, Thank you, that was quick and it works great.