Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more: (untagged)
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
Posted
Comments
Sergey Alexandrovich Kryukov 28-Nov-12 17:46pm    
Why? why?!
--SA

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
 
Share this answer
 
Comments
Espen Harlinn 28-Nov-12 18:16pm    
Good points
Sergey Alexandrovich Kryukov 28-Nov-12 19:32pm    
Thank you, Espen.
--SA
Wendelius 12-Dec-12 0:20am    
Good answer
Sergey Alexandrovich Kryukov 12-Dec-12 0:22am    
Thank you, Mika.
--SA
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
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 28-Nov-12 19:32pm    
Good link, a 5.
--SA
Espen Harlinn 29-Nov-12 3:42am    
Thank you, Sergey :-D
Wendelius 12-Dec-12 0:20am    
That's a useful link
Espen Harlinn 12-Dec-12 9:37am    
Thank you, Mika :-D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900