Using Themes and Skins for Personalization with Visual Basic 2005 (Page 1 of 7 )
In this final part of a four-part series on personalization, you'll learn about using themes and skins, and more. It is excerpted from chapter 12 of the book
Programming Visual Basic 2005, written by Jesse Liberty (O'Reilly, 2005; ISBN: 0596009496). Copyright © 2005 O'Reilly Media, Inc. All rights reserved. Used with permission from the publisher. Available from booksellers or direct from O'Reilly Media.
Create the Test Site
To demonstrate the use of themes and skins, you’ll create a new web site (Themes) but you will use Copy Web Site to bring over all the personalization code from the previous example and set the start page to Welcome.aspx. Test the application to make sure it still works as expected.
To begin modifying your application, you’ll need some controls whose look and feel you can set.
Open Welcome.aspx, and drag on some new controls, as shown in Figure 12-44.

Figure 12-44. Welcome.aspx new controls
There are four labels (each with names beginning withlbl):ListBox,RadioButtonList,Calendar, andTextBox. Use the default properties (other than the names) for all, except remove all text fromTextBox1’sTextproperty.
You’ll also need to click on the smart tag for bothlbItems(theListBox) andRadioButtonList1(theRadioButtonList). For each of these, choose Edit the List items, as shown in Figure 12-45.

Figure 12-45. Choose Edit the List items
In the ListItem Collection Editor add four items to the list box, and six items to theRadioButtonList, as shown back in Figure 12-44.
You will use themes to change the look and feel of the new controls.
Next: Organize Site Themes and Skins >>
More Visual Basic.NET Articles
More By O'Reilly Media
|
This article is excerpted from chapter 12 of the book Programming Visual Basic 2005, written by Jesse Liberty (O'Reilly, 2005; ISBN: 0596009496). Check it out today at your favorite bookstore. Buy this book now.
|
|