Click here to Skip to main content
Rate this: bad
good
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 | :)

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

 
Thanks,

James
Posted 28-Nov-12 10:44am
Comments
Sergey Alexandrovich Kryukov at 28-Nov-12 17:46pm
   
Why? why?!
--SA
Rate this: bad
good
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:
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
  Permalink  
Comments
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
good
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
  Permalink  
Comments
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 Sergey Alexandrovich Kryukov 547
1 ChauhanAjay 180
2 CHill60 135
3 Maciej Los 125
4 Richard Deeming 125
0 Sergey Alexandrovich Kryukov 9,735
1 OriginalGriff 6,987
2 CPallini 5,835
3 George Jonsson 4,017
4 Gihan Liyanage 3,266


Advertise | Privacy | Mobile
Web03 | 2.8.140926.1 | Last Updated 28 Nov 2012
Copyright © CodeProject, 1999-2014
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