网络浏览器中的状态栏

发布于 2024-08-15 10:45:47 字数 137 浏览 2 评论 0原文

我正在寻找有关如何添加状态栏并为网络浏览器控件显示相同状态栏的选项,对此有何想法。

当我在网络浏览器上方的文本框中输入 https: 站点时,我应该在状态栏上显示 ssl 安全图标。

请回复。

提前致谢, 卡西克

Am looking an option on how to add status bar and show the same for webbrowser control, any thoughts on that.

When i type sites with https: on a texbox above webbrowser i am supposed to show the ssl secure icon on status bar.

Please reply.

Thanks in advance,
Karthick

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

眼泪淡了忧伤 2024-08-22 10:45:47

To show the padlock icon, handle the DocumentCompleted event and show the icon if browser.Url.Scheme == "https".

蒗幽 2024-08-22 10:45:47

您需要处理 StatusTextChanged事件并检查 StatusText 属性。

您可以将 StatusStrip 控件和 StusStripLabel 添加到表单中,然后在 StatusTextChanged 事件中将 StatusStripLabel 的 Text 属性设置为 WebBrowser 的 StatusText 属性。

You need to handle the StatusTextChanged event and check the StatusText property.

You can add a StatusStrip control and a StusStripLabel to your form, then set the StatusStripLabel's Text property to your WebBrowser's StatusText property in the StatusTextChanged event.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文