Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Pro Visual Basic 2005
| Search | Today's Posts | Mark Forums Read
Pro Visual Basic 2005 For advanced Visual Basic coders working in version 2005. Beginning-level questions will be redirected to other forums, including Beginning VB 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Visual Basic 2005 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 June 25th, 2006, 09:25 AM
Registered User
 
Join Date: Jun 2006
Location: , , Syria.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to VoodooCreator
Default Property initialization problem

I'm trying to make a control with two properties related to each other. The size, and the rounded-corner radius. Obviously, you can't choose a corner radius greater than min(width, height).. and you can't choose a width or height less than corner-radius.

The problem is that the designer initializes the properties in their alphabetical order (meaning that CornerRadius is set BEFORE Size).. so if its value is invalid before setting the new size, an exception will be thrown.
I want to make the designer set the Size before the CornerRadius.. Can I do this?

 
Old June 29th, 2006, 07:56 PM
Registered User
 
Join Date: Jun 2006
Location: , , Syria.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to VoodooCreator
Default

Ok, I fixed the problem by making the CornerRadius property independent from the Size.. But I still don't know if changing the order of property initialization is possible.

Anyway, I wanna ask if it's allowed to have a Work-in-progress section.. where we can post small projects we're currently working on, and discuss them as we develop them.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Chapter 3 Type Initialization error canyiah BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 7 April 9th, 2009 06:07 PM
Problem about "IsCrossPagePostBack" Property. condescendent ASP.NET 2.0 Professional 0 June 12th, 2007 09:26 PM
c# comboBox Initialization problem ColdFusion ASP.NET 2.0 Basics 1 May 11th, 2006 12:44 PM
Error in Correlation Property Initialization vijay_rb Biztalk 1 August 17th, 2004 08:17 AM
Minor User Control Initialization Problem Ron Howerton VB.NET 2002/2003 Basics 4 May 10th, 2004 07:38 AM





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