
432
|
Chapter 12: The Language Reference
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
If (selectFile.ShowDialog( ) = DialogResult.OK) Then
Console.WriteLine(selectFile.FileName)
End If
Version Differences
The public interfaces used for this SaveFileDialog class and the related VB 6 Common-
Dialog control are quite different.
See Also
OpenFileDialog Class
SaveSetting Procedure
Class
Microsoft.VisualBasic.Interaction
Syntax
SaveSetting(appname, section, key, setting)
appname (required; String)
The name of the application branch to be updated.
section (required; String)
The name of the application’s subkey to be updated. This can be a single key or a
relative registry path, with path components separated by backslashes.
key (required; String)
The name of the value entry to update.
setting (required; String)
The value to assign to the specified key value entry.
Description
The SaveSetting procedure creates or updates a single value in a specified section of
your application’s entry in the
HKEY_CURRENT_USER\Software\VB and VBA ProgramSettings\
branch of the registry.
Usage at a Glance
• The function writes a value within the KEY_CURRENT_USER\Software\VB and VBA
ProgramSettings
section of the registry.
• If the appname, section,orkey entries are not found in the registry, they are auto-
matically created.
•
section is a relative path (similar to that used ...