Dalexan
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("InternetExpl orer.Appli cation")
objIE.Toolbar = blnToolBar
objIE.StatusBar = blnStatusBar
objIE.Visible = True
Call objIE.Navigate(strUrl)
Set objIE = Nothing
End Sub
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("InternetExpl
objIE.Toolbar = blnToolBar
objIE.StatusBar = blnStatusBar
objIE.Visible = True
Call objIE.Navigate(strUrl)
Set objIE = Nothing
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perhaps you may have an answer for another question I have posted?
https://www.experts-exchange.com/questions/21878238/Parse-current-webpage-return-select-strings-to-vb-app.html
https://www.experts-exchange.com/questions/21878238/Parse-current-webpage-return-select-strings-to-vb-app.html
ASKER