在WebBrowser控件内的Textbox上,退格键不起作用. [英] Backspace not working on Textbox inside WebBrowser control.

查看:87
本文介绍了在WebBrowser控件内的Textbox上,退格键不起作用.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用WebBrowser控件的应用程序,可以导航到URL.在导航URL之前,它进入AAD页面进行身份验证,在UserName文本框上不能使用退格键.因此,如果用户错误地添加了错误的字符用户 无法使用退格键对其进行编辑.

 I have an application which uses a WebBrowser control, to navigate to a URL, Before URL is navigated its goes to AAD page for authentication, backspace doesnot work on the UserName text box. Hence if a user by mistake has added a wrong character user cannot edit it using backspace.

请告知此处可能缺少的内容.

Please advise what could be missing here.

推荐答案

嗨VineetRawat,

Hi VineetRawat,

谢谢您在这里发布.

您的意思是当您在webbrower中打开页面并执行某项操作之后,想要返回上一页吗?

Do you mean when you open a page in webbrower and you do something, after that you want to back to the previous page?

您可以使用 The WebBrowser控件维护在浏览会话期间访问的所有网页的历史记录列表.设置Url属性时,WebBrowser控件将导航到指定的URL并将其添加到历史记录列表的末尾.

You could use WebBrowser.Url Property. The WebBrowser control maintains a history list of all the Web pages visited during a browsing session. When you set the Url property, the WebBrowser control navigates to the specified URL and adds it to the end of the history list.

在WebBrower.Url属性的MSDN文章中,有一个示例

In the MSDN article of WebBrower.Url Property, there is a example to implement an address bar for the WebBrowser control for reference.

如果我误解了您想要的内容,请随时与我们联系.

我希望这会有所帮助.

最好的问候,

Wendy


这篇关于在WebBrowser控件内的Textbox上,退格键不起作用.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆