Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2008 > BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8
BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8
This is the forum to discuss the Wrox book Professional C# 2008 by Christian Nagel, Bill Evjen, Jay Glynn, Morgan Skinner, Karli Watson; ISBN: 9780470191378
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 20th, 2010, 12:08 PM
Registered User
Join Date: May 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 25 Window placement using the registry

This example has problems if the window is closed from either a minimized or maximized state. I haven't investigated but I think it's saving the current position even if it's minimized or maximized.
Then if the window opens minimized clicking Restore doesn't do anything similarly if the window opens maximized clicking the restore icon doesn't do anything either...

The example does demonstrate the registry use which I suppose is the point. Though for window settings I expected a handy object that did something matching this C++:
   // Store window size and position in the   registry to be used on opening again.
	CWindowSettings ws;
	ws.Save(_T("Software\\Wrox\\"), _T("Main"));

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 25 Code Pankajh_mishra BOOK: Professional C# 2005 with .NET 3.0 ISBN: 978-0-470-12472-7 0 March 18th, 2010 02:44 AM
Missing Chapter 25 cir306 BOOK: Professional Microsoft SQL Server 2008 Programming 0 September 10th, 2009 11:38 PM
Registry Example (Chapter 25) & Vista MichaelBate BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8 0 March 12th, 2009 11:25 AM
Chapter 6: Page 197 - CSS placement VeganMan BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 11 April 7th, 2008 01:43 PM
Post Preview Window Placement SerranoG Forum and Wrox.com Feedback 1 June 13th, 2003 09:26 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.