Click here to Skip to main content
11,647,644 members (66,532 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: CodeProject
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 Smile | :) Thanks, James
Posted 28-Nov-12 10:44am
Sergey Alexandrovich Kryukov at 28-Nov-12 17:46pm
Why? why?! --SA
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 at 28-Nov-12 18:16pm
Good points
Sergey Alexandrovich Kryukov at 28-Nov-12 19:32pm
Thank you, Espen. --SA
Mika Wendelius at 12-Dec-12 0:20am
Good answer
Sergey Alexandrovich Kryukov at 12-Dec-12 0:22am
Thank you, Mika. --SA
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 at 28-Nov-12 19:32pm
Good link, a 5. --SA
Espen Harlinn at 29-Nov-12 3:42am
Thank you, Sergey :-D
Mika Wendelius at 12-Dec-12 0:20am
That's a useful link
Espen Harlinn at 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
0 500
1 F-ES Sitecore 370
2 OriginalGriff 322
3 DamithSL 315
4 CPallini 240
0 OriginalGriff 1,342
1 994
2 DamithSL 971
3 Sergey Alexandrovich Kryukov 873
4 CPallini 795

Advertise | Privacy | Mobile
Web01 | 2.8.150804.3 | 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