Click here to Skip to main content
11,935,361 members (61,312 online)
Rate this:
Please Sign up or sign in to vote.
See more: CodeProject
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 Smile | :)


Posted 28-Nov-12 11:44am
Sergey Alexandrovich Kryukov 28-Nov-12 17:46pm
Why? why?!
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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:[^],[^].

To get some ideas, please see:[^].

You will find numerous samples with demo.

Good luck,
Espen Harlinn 28-Nov-12 18:16pm
Good points
Sergey Alexandrovich Kryukov 28-Nov-12 19:32pm
Thank you, Espen.
Mika Wendelius 12-Dec-12 0:20am
Good answer
Thank you, Mika.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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
Sergey Alexandrovich Kryukov 28-Nov-12 19:32pm
Good link, a 5.
Espen Harlinn 29-Nov-12 3:42am
Thank you, Sergey :-D
Mika 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151126.1 | Last Updated 28 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100