Article Options
Premium Sponsor
Premium Sponsor

 »  Home  »  .NET Newbie  »  Creating, Using and Saving My.Settings Default Values in Visual Basic 2005  »  Adding User Scope Settings
 »  Home  »  Visual Studio 2005  »  Creating, Using and Saving My.Settings Default Values in Visual Basic 2005  »  Adding User Scope Settings
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:
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.

Sponsored Links