| Creating, Using and Saving My.Settings Default Values in Visual Basic 2005 |
by Dave Barr |
Published
05/29/2006
|
.NET Newbie
,
Visual Studio 2005
|
Rating:/Images/RateSecA.gif) /Images/RateSecA.gif) /Images/RateSecA.gif) /Images/RateSecA.gif)
|
|
|
|
Adding User Scope Settings

Fill in the following properties for the first Setting:
Name: DefaultFont
Type: System.Drawing.Font
Scope: User
In the Value column press the ellipse (...) button. Since you have chosen 'font' as the setting type, the Font Dialog opens. Use the following font settings:
Font: Microsoft Sans Serif
Font Style: Italic
Size: 12
Script: Western

Create three more Settings. For the first, use the following property settings:
Name: DefaultFontColor
Type: System.DrawingColor
Scope: User
For the Value you can type, or choose the color itself. Use the color 'Navy'.
For the second setting, use:
Name: DefaultFormColor
Type: System.DrawingColor
Scope: User
Value: Lavender (Found under the 'Web' color tab)
For the third setting, use:
Name: DefaultName
Type: String
Scope: User
Value: 3-bSoftware.com

Your Settings should look like the image above.
|
|
|