AxMsRdpClient6NotSafeForScripting AllowPromptingForCredentials [英] AxMsRdpClient6NotSafeForScripting AllowPromptingForCredentials
本文介绍了AxMsRdpClient6NotSafeForScripting AllowPromptingForCredentials的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试在 AxMsRdpClient6NotSafeForScripting 控件(在 Windows Vista 上)上将 AllowPromptingForCredentials 设置为 False.但是 AllowPromptingForCredentials 不可用.我的代码是:
I try to set AllowPromptingForCredentials to False on AxMsRdpClient6NotSafeForScripting control (on Windows Vista). But AllowPromptingForCredentials is not available. My code is :
x = New AxMsRdpClient6NotSafeForScripting
CType(x, System.ComponentModel.ISupportInitialize).BeginInit()
x.Dock = System.Windows.Forms.DockStyle.Fill
x.Enabled = True
'x.Location = New System.Drawing.Point(0, 0)
x.Name = "OfficeWin7"
P.Controls.Add(x)
CType(x, System.ComponentModel.ISupportInitialize).EndInit()
x.CreateControl()
x.Size = New System.Drawing.Size(800, 600)
x.Server = _server
x.UserName = _username
x.AdvancedSettings7.ClearTextPassword = _password
x.AdvancedSettings5.PublicMode = False
x.AdvancedSettings7.RedirectDrives = False
x.AdvancedSettings7.AudioRedirectionMode = 2
x.AdvancedSettings7.NotifyTSPublicKey = False
x.FullScreen = False
x.AdvancedSettings7.SmartSizing = False
Dim ocx As MSTSCLib.IMsRdpClientNonScriptable4 = x.GetOcx()
ocx.EnableCredSspSupport = True
ocx.AllowCredentialSaving = False
ocx.AllowPromptingForCredentials = False ' here is the problem
x.AdvancedSettings7.AuthenticationLevel = 0
x.AdvancedSettings7.GrabFocusOnConnect = True
x.AdvancedSettings7.RedirectPrinters = False
x.AdvancedSettings7.RedirectPorts = False
x.AdvancedSettings7.RedirectSmartCards = False
x.AdvancedSettings7.RedirectClipboard = False
x.AdvancedSettings7.EnableAutoReconnect = False
使用 Visual Studio 2008(如果您必须知道的话).知道我做错了什么吗?提前致谢.
Using Visual Studio 2008 (if you must know). Any idea what am I doing wrong ? Thanks in advance.
推荐答案
答案是:
ocx.PromptForCredentials = False
我看的方向不对!
这篇关于AxMsRdpClient6NotSafeForScripting AllowPromptingForCredentials的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文