Microsoft Visual Studio Express代码 [英] microsoft visual studios express Code

查看:106
本文介绍了Microsoft Visual Studio Express代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我在Microsoft Visual Studio Express 2010中创建了一个Web浏览器.
我在浏览器"窗口的顶部添加一个带有最小化"按钮的栏.我需要一个允许我最小化软件内部浏览窗口的代码.我封闭了照片存储桶的图片链接,以显示我的设计和正在谈论的内容:)

http://i252.photobucket.com/albums/hh34/radiobkc/photobucket.png


谢谢,

James

Hi I Created A Web Browser in microsoft visual studios express 2010.
I add a Bar ontop of the Broswer window with Minimize button. I need a code that Allows me to Minimize the broswer window inside of the software . I Enclosed Photo bucket Image Link to show What I have designed and what I am talking about :)

http://i252.photobucket.com/albums/hh34/radiobkc/photobucket.png


Thanks,

James

推荐答案

如此好,以至于Web应用程序无权对任意浏览器和客户端系统进行类似的操作!

一个Web应用程序可以创建一个新的(弹出窗口)窗口是绰绰有余的,而无需您在图片中显示的按钮和其他重要信息,这样的窗口就可以实现.元素,它足以使应用程序尝试阻止用户关闭窗口-所有这些操作,除非用户禁用了客户端脚本.这些功能已经太多了.并且它们允许Web开发人员"(想要的引号)残酷地滥用客户端系统的行为,并试图剥夺用户的基本权利.没有经验的用户真的会因此而受苦,其他人则感到非常恼火.

不要尝试做讨厌的事情.以一种不错的方式更好地设计代码.

我可以给你一个主意,但这只是一个主意.您可以使用诸如<div>之类的某些元素,并使用JavaScript和CSS来模拟其类似于窗口的行为.它可能具有带有类似按钮的模拟边框,也可以没有它们,可以显示,隐藏,移动,最小化,调整大小,无论您想要什么.并且所有内容都将在一个浏览器窗口中展开.如今,此类组件非常流行.并且有很多第三方产品可以实现它.最好的方法之一是 jQuery 库:
http://en.wikipedia.org/wiki/Jquery [ http://jquery.com/ [ ^ ].

要获得一些想法,请参阅: http://bit.ly/UsMWRH​​ [
This is so good that a Web application does not have power to do anything like that to the arbitrary browser and to the client''s system in general!

It''s more than enough that a Web application can create a new ("pop-up") window, it''s more than enough that such windows can come without the button you''ve shown in your picture and other important elements, it''s more then enough that an application can try to prevent a user to close a window — all of that, unless the user disables client-side scripting. These features are already too much; and they allow the Web "developers" (quotation marks intended) brutally abuse the behavior of the client system and try to deprive the user from most elementary rights. Inexperienced users can really suffer from that, and others feel greatly irritated.

Don''t try to do nasty things. Better design your code in a nice way.

I can give you one idea, but this is only one. You can takes some elements like <div> and use JavaScript and CSS to simulate window-like behavior of it. It could have simulated borders with similar buttons or without them, it could be shown, hidden, moved, minimized, resized — whatever you want; and everything will be unfolded in one browser window. These days, such components are very popular; and there are a lot of 3rd-party products to implement it. One of the best ways to do such things is the jQuery library:
http://en.wikipedia.org/wiki/Jquery[^],
http://jquery.com/[^].

To get some ideas, please see: http://bit.ly/UsMWRH[^].

You will find numerous samples with demo.

Good luck,
—SA


您可以使用网络浏览器做很多事情-看一下:
最完整的C#Webbrowser包装器控件 [ ^ ]

最好的问候
Espen Harlinn
There is a lot of stuff you can do with the web browser - have a look at:
The most complete C# Webbrowser wrapper control[^]

Best regards
Espen Harlinn


这篇关于Microsoft Visual Studio Express代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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