Wrox Programmer Forums
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 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 December 21st, 2005, 12:18 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default Custom Styles

Hello,

I'm familiar with custom styles in ASP.NET development, but I was wondering how styles are applied in windows forms controls; I'm developing a custom controls that I want to provide styling for. Do you use Style objects, or just expose the style properties directly?

Thanks.

Brian
__________________
Brian
 
Old December 21st, 2005, 02:30 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

<disclaimer>I have not built anything in .net windows forms that was anything more than a simple test rig or utility so I can't answer authoritatively. I offer this as an arbitrary suggestion that may likely be crazy and/or stupid.</disclaimer>

Perhaps this will work: Build a base form class from which all your application's forms will derive. Then at some point in the form load process a event handler in the base form can spin thru all the controls on the form and apply the desired styles to the form. This way you can add a new form to your project and simply inherit it from your base form to get all the predefined look and feel.

There aren't windows form style sheets are there?

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with styles toddw607 Javascript 3 June 3rd, 2008 12:37 PM
Chart Styles lumaar BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 June 8th, 2006 01:05 AM
Styles tsimsha HTML Code Clinic 2 February 9th, 2006 11:32 AM
Styles problem tsimsha HTML Code Clinic 9 November 17th, 2004 09:58 AM
Visual Styles jlanxxi VB.NET 2002/2003 Basics 0 September 21st, 2004 05:54 AM





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