N
Nico Lepe
Hi,
I have the following function that I use to connect to a remote
server; it works fine and there is no problems in it...
But now I want to hide the minimize button in the remote session
window. So I've added this line in my code:
MsRdpClient.AdvancedSettings3.ConnectionBarShowMinimizeButton= FALSE
But I receive a Javascript error: Property or Method not supported by
the object.
Wher am I wrong ?
Many thanks,
Nick.
sub BtnConnect
Dim serverName
'server
if not Document.all.Server.value = "" then
serverName = Document.all.Server.value
else
serverName = Document.location.hostname
end if
serverName = trim(serverName)
MsRdpClient.server = serverName
'serverName name text
Document.all.srvNameField.innerHtml = serverName
'Username/Domain
MsRdpClient.UserName = Document.all.UserName.Value
MsRdpClient.Domain = Document.all.Domain.Value
MsRdpClient.AdvancedSettings2.ClearTextPassword = "pluto"
'Resolution
MsRdpClient.FullScreen = FALSE
select case document.all.comboResolution.value
case "1"
MsRdpClient.FullScreen = TRUE
resWidth = screen.width
resHeight = screen.height
case "2"
resWidth = "640"
resHeight = "480"
case "3"
resWidth = "800"
resHeight = "600"
case "4"
resWidth = "1024"
resHeight = "768"
case "5"
resWidth = "1280"
resHeight = "1024"
case "6"
resWidth = "1600"
resHeight = "1200"
end select
MsRdpClient.DesktopWidth = resWidth
MsRdpClient.DesktopHeight = resHeight
MsRdpClient.Width = resWidth
MsRdpClient.Height = resHeight
sStartProgram = Document.all.StartProgram.value
if sStartProgram <> "" then
MsRdpClient.SecuredSettings.StartProgram = sStartProgram
end if
'Device redirection options
MsRdpClient.AdvancedSettings2.RedirectDrives = FALSE
MsRdpClient.AdvancedSettings2.RedirectPrinters = TRUE
MsRdpClient.AdvancedSettings2.RedirectPorts = FALSE
MsRdpClient.AdvancedSettings2.RedirectSmartCards = FALSE
MsRdpClient.AdvancedSettings3.ConnectionBarShowMinimizeButton=
FALSE
'FullScreen title
MsRdpClient.FullScreenTitle = L_FullScreenTitle_Text & "(" &
serverName & ")"
'Display connect region
Document.all.loginArea.style.display = "none"
Document.all.connectArea.style.display = "block"
'Connect
MsRdpClient.Connect
end sub
I have the following function that I use to connect to a remote
server; it works fine and there is no problems in it...
But now I want to hide the minimize button in the remote session
window. So I've added this line in my code:
MsRdpClient.AdvancedSettings3.ConnectionBarShowMinimizeButton= FALSE
But I receive a Javascript error: Property or Method not supported by
the object.
Wher am I wrong ?
Many thanks,
Nick.
sub BtnConnect
Dim serverName
'server
if not Document.all.Server.value = "" then
serverName = Document.all.Server.value
else
serverName = Document.location.hostname
end if
serverName = trim(serverName)
MsRdpClient.server = serverName
'serverName name text
Document.all.srvNameField.innerHtml = serverName
'Username/Domain
MsRdpClient.UserName = Document.all.UserName.Value
MsRdpClient.Domain = Document.all.Domain.Value
MsRdpClient.AdvancedSettings2.ClearTextPassword = "pluto"
'Resolution
MsRdpClient.FullScreen = FALSE
select case document.all.comboResolution.value
case "1"
MsRdpClient.FullScreen = TRUE
resWidth = screen.width
resHeight = screen.height
case "2"
resWidth = "640"
resHeight = "480"
case "3"
resWidth = "800"
resHeight = "600"
case "4"
resWidth = "1024"
resHeight = "768"
case "5"
resWidth = "1280"
resHeight = "1024"
case "6"
resWidth = "1600"
resHeight = "1200"
end select
MsRdpClient.DesktopWidth = resWidth
MsRdpClient.DesktopHeight = resHeight
MsRdpClient.Width = resWidth
MsRdpClient.Height = resHeight
sStartProgram = Document.all.StartProgram.value
if sStartProgram <> "" then
MsRdpClient.SecuredSettings.StartProgram = sStartProgram
end if
'Device redirection options
MsRdpClient.AdvancedSettings2.RedirectDrives = FALSE
MsRdpClient.AdvancedSettings2.RedirectPrinters = TRUE
MsRdpClient.AdvancedSettings2.RedirectPorts = FALSE
MsRdpClient.AdvancedSettings2.RedirectSmartCards = FALSE
MsRdpClient.AdvancedSettings3.ConnectionBarShowMinimizeButton=
FALSE
'FullScreen title
MsRdpClient.FullScreenTitle = L_FullScreenTitle_Text & "(" &
serverName & ")"
'Display connect region
Document.all.loginArea.style.display = "none"
Document.all.connectArea.style.display = "block"
'Connect
MsRdpClient.Connect
end sub