diff --git a/docs/visual-basic/developing-apps/accessing-data.md b/docs/visual-basic/developing-apps/accessing-data.md index 5ecf17a15e568..f2ea3d47a491d 100644 --- a/docs/visual-basic/developing-apps/accessing-data.md +++ b/docs/visual-basic/developing-apps/accessing-data.md @@ -1,5 +1,5 @@ --- -title: "Accessing Data in Visual Basic Applications | Microsoft Docs" +title: "Accessing data in Visual Basic applications | Microsoft Docs" ms.custom: "" ms.date: "2015-07-20" ms.prod: "visual-studio-dev14" @@ -34,10 +34,10 @@ translation.priority.ht: - "zh-cn" - "zh-tw" --- -# Accessing Data in Visual Basic Applications -[!INCLUDE[vbprvb](../../csharp/programming-guide/concepts/linq/includes/vbprvb_md.md)] includes several new features to assist in developing applications that access data. Data-bound forms for Windows applications are created by dragging items from the [Data Sources Window](/visualstudio/data-tools/bind-controls-to-data-in-visual-studio) onto the form. You bind controls to data by dragging items from the **Data Sources Window** onto existing controls. +# Accessing data in Visual Basic applications +[!INCLUDE[vbprvb](../../csharp/programming-guide/concepts/linq/includes/vbprvb_md.md)] includes several new features to assist in developing applications that access data. -## Related Sections +## Related sections [Creating Data Applications](/visualstudio/data-tools/creating-data-applications) Provides links to pages that discuss incorporating data access functionality into your applications. @@ -76,6 +76,4 @@ translation.priority.ht: [ADO.NET](https://msdn.microsoft.com/library/e80y5yhx.aspx) Describes the ADO.NET classes, which expose data-access services to the .NET Framework programmer. - - [Data in Office Solutions](/office-dev/office-dev/data-in-office-solutions) - Contains links to pages that explain how data works in Office solutions, including information about schema-oriented programming, data caching, and server-side data access. \ No newline at end of file + \ No newline at end of file diff --git a/docs/visual-basic/developing-apps/customizing-extending-my/packaging-and-deploying-custom-my-extensions.md b/docs/visual-basic/developing-apps/customizing-extending-my/packaging-and-deploying-custom-my-extensions.md index 4b657d08bf519..db4ed9bb392e1 100644 --- a/docs/visual-basic/developing-apps/customizing-extending-my/packaging-and-deploying-custom-my-extensions.md +++ b/docs/visual-basic/developing-apps/customizing-extending-my/packaging-and-deploying-custom-my-extensions.md @@ -1,5 +1,5 @@ --- -title: "Packaging and Deploying Custom My Extensions (Visual Basic) | Microsoft Docs" +title: "Packaging and deploying custom My extensions (Visual Basic) | Microsoft Docs" ms.custom: "" ms.date: "2015-07-20" ms.prod: "visual-studio-dev14" @@ -35,7 +35,7 @@ translation.priority.ht: - "zh-cn" - "zh-tw" --- -# Packaging and Deploying Custom My Extensions (Visual Basic) +# Packaging and deploying custom My extensions (Visual Basic) Visual Basic provides an easy way for you to deploy your custom `My` namespace extensions by using Visual Studio templates. If you are creating a project template for which your `My` extensions are an integral part of the new project type, you can just include your custom `My` extension code with the project when you export the template. For more information about exporting project templates, see [How to: Create Project Templates](http://msdn.microsoft.com/library/a1a6999d-a34c-48a8-b1cf-027eb5c76398). If your custom `My` extension is in a single code file, you can export the file as an item template that users can add to any type of Visual Basic project. You can then customize the item template to enable additional capabilities and behavior for your custom `My` extension in a Visual Basic project. Those capabilities include the following: @@ -48,19 +48,19 @@ Visual Basic provides an easy way for you to deploy your custom `My` namespace e This topic discusses how to package a custom `My` extension as a hidden item template that can be managed from the **My Extensions** page of the Visual Basic Project Designer. The custom `My` extension can also be added automatically when a reference to a specified assembly is added to a project. -## Create a My Namespace Extension +## Create a My namespace extension The first step in creating a deployment package for a custom `My` extension is to create the extension as a single code file. For details and guidance about how to create a custom `My` extension, see [Extending the My Namespace in Visual Basic](../../../visual-basic/developing-apps/customizing-extending-my/extending-the-my-namespace.md). -## Export a My Namespace Extension as an Item Template +## Export a My namespace extension as an item template After you have a code file that includes your `My` namespace extension, you can export the code file as a Visual Studio item template. For instructions on how to export a file as a Visual Studio item template, see [How to: Create Item Templates](http://msdn.microsoft.com/library/77bc53d4-d607-4820-a032-7e3b365891b5). > [!NOTE] > If your `My` namespace extension has a dependency on a particular assembly, you can customize your item template to automatically install your `My` namespace extension when a reference to that assembly is added. As a result, you will want to exclude that assembly reference when you export the code file as a Visual Studio item template. -## Customize the Item Template +## Customize the item template You can enable your item template to be managed from the **My Extensions** page of the Visual Basic Project Designer. You can also enable the item template to be added automatically when a reference to a specified assembly is added to a project. To enable these customizations, you will add a new file, called the CustomData file, to your template, and then add a new element to the XML in your .vstemplate file. -### Add the CustomData File +### Add the CustomData file The CustomData file is a text file that has a file name extension of .CustomData (the file name can be set to any value meaningful to your template) and that contains XML. The XML in the CustomData file instructs Visual Basic to include your `My` extension when users use the **My Extensions** page of the Visual Basic Project Designer. You can optionally add the <`AssemblyFullName>` attribute to your CustomData file XML. This instructs Visual Basic to automatically install your custom `My` extension when a reference to a particular assembly is added to the project. You can use any text editor or XML editor to create the CustomData file, and then add it to your item template's compressed folder (.zip file). For example, the following XML shows the contents of a CustomData file that will add the template item to the My Extensions folder of a Visual Basic project when a reference to the Microsoft.VisualBasic.PowerPacks.Vs.dll assembly is added to the project. @@ -81,7 +81,7 @@ Visual Basic provides an easy way for you to deploy your custom `My` namespace e |`Version`|Required. A version number for the item template.| |`AssemblyFullName`|Optional. An assembly name. When a reference to this assembly is added to the project, the user will be prompted to add the `My` extension from this item template.| -### Add the \ Element to the .vstemplate File +### Add the \ element to the .vstemplate file To identify your Visual Studio item template as a `My` namespace extension, you must also modify the .vstemplate file for your item template. You must add a `` element to the `` element. The `` element must contain the text `Microsoft.VisualBasic.MyExtension`, as shown in the following example. ``` @@ -113,10 +113,10 @@ Visual Basic provides an easy way for you to deploy your custom `My` namespace e ``` -## Install the Template - To install the template, you can copy the compressed folder (.zip file) to the Visual Basic item templates folder (for example, My Documents\Visual Studio 2008\Templates\Item Templates\Visual Basic). Alternatively, you can publish the template as a Visual Studio Installer (.vsi) file. For information about publishing your template as a Visual Studio Installer file, see [NIB: How to: Publish Project Templates](http://msdn.microsoft.com/en-us/b9087f58-64e9-4767-bf54-e3bf40d63b20). +## Install the template + To install the template, you can copy the compressed folder (.zip file) to the Visual Basic item templates folder (for example, My Documents\Visual Studio 2008\Templates\Item Templates\Visual Basic). Alternatively, you can publish the template as a Visual Studio Installer (.vsi) file. -## See Also +## See also [Extending the My Namespace in Visual Basic](../../../visual-basic/developing-apps/customizing-extending-my/extending-the-my-namespace.md) [Extending the Visual Basic Application Model](../../../visual-basic/developing-apps/customizing-extending-my/extending-the-visual-basic-application-model.md) [Customizing Which Objects are Available in My](../../../visual-basic/developing-apps/customizing-extending-my/customizing-which-objects-are-available-in-my.md) diff --git a/docs/visual-basic/developing-apps/printing/deploying-applications-that-reference-the-printform-component.md b/docs/visual-basic/developing-apps/printing/deploying-applications-that-reference-the-printform-component.md index c231cb5789287..fa79b4dea2b25 100644 --- a/docs/visual-basic/developing-apps/printing/deploying-applications-that-reference-the-printform-component.md +++ b/docs/visual-basic/developing-apps/printing/deploying-applications-that-reference-the-printform-component.md @@ -1,5 +1,5 @@ --- -title: "Deploying Applications That Reference the PrintForm Component (Visual Basic) | Microsoft Docs" +title: "Deploying applications that reference the PrintForm component (Visual Basic) | Microsoft Docs" ms.custom: "" ms.date: "2015-07-20" ms.prod: "visual-studio-dev14" @@ -34,12 +34,12 @@ translation.priority.mt: - "pt-br" - "tr-tr" --- -# Deploying Applications That Reference the PrintForm Component (Visual Basic) +# Deploying applications that reference the PrintForm component (Visual Basic) If you want to deploy an application that references the component, the component must be installed on the destination computer. The PowerPack controls are no longer included in Visual Studio, but you can download them from the [Download Center](http://www.microsoft.com/en-us/download/details.aspx?id=25169). -## Installing the PrintForm as a Prerequisite +## Installing the PrintForm as a prerequisite To successfully deploy an application, you must also deploy all components that are referenced by the application. The process of installing prerequisite components is known as *bootstrapping*. When the component is installed on your development computer, a Microsoft Visual Basic Power Packs bootstrapper package is added to the [!INCLUDE[vsprvs](../../../csharp/includes/vsprvs_md.md)] bootstrapper directory. This package is then available when you follow the procedures for adding prerequisites for either [!INCLUDE[ndptecclick](../../../visual-basic/developing-apps/printing/includes/ndptecclick_md.md)] or Windows Installer deployment. @@ -53,7 +53,6 @@ If you want to deploy an application that references the component by using an electronic software distribution system like Microsoft Systems Management Server. -## See Also +## See also [How to: Install Prerequisites with a ClickOnce Application](http://msdn.microsoft.com/library/e964fca5-fdfd-47cf-a1c9-7fb96b1c88b5) - [Not in Build: Choosing a Deployment Strategy](http://msdn.microsoft.com/en-us/ecd632d8-063c-4028-b785-81bba045107b) [PrintForm Component](../../../visual-basic/developing-apps/printing/printform-component.md) \ No newline at end of file diff --git a/docs/visual-basic/developing-apps/programming/app-settings/accessing-application-settings.md b/docs/visual-basic/developing-apps/programming/app-settings/accessing-application-settings.md index 1c8bd37af303e..a68641538caf6 100644 --- a/docs/visual-basic/developing-apps/programming/app-settings/accessing-application-settings.md +++ b/docs/visual-basic/developing-apps/programming/app-settings/accessing-application-settings.md @@ -1,5 +1,5 @@ --- -title: "Accessing Application Settings (Visual Basic) | Microsoft Docs" +title: "Accessing application settings (Visual Basic) | Microsoft Docs" ms.custom: "" ms.date: "2015-07-20" ms.prod: "visual-studio-dev14" @@ -34,7 +34,7 @@ translation.priority.ht: - "zh-cn" - "zh-tw" --- -# Accessing Application Settings (Visual Basic) +# Accessing application settings (Visual Basic) This section contains topics describing the `My.Settings` object and the tasks it enables you to accomplish. ## My.Settings @@ -52,9 +52,6 @@ This section contains topics describing the `My.Settings` object and the tasks i |Save updated user setting values|[How to: Persist User Settings in Visual Basic](../../../../visual-basic/developing-apps/programming/app-settings/how-to-persist-user-settings.md)| |Determine the values of user settings|[How to: Read Application Settings in Visual Basic](../../../../visual-basic/developing-apps/programming/app-settings/how-to-read-application-settings.md)| -## See Also - [Managing Application Settings (.NET)](/visualstudio/ide/managing-application-settings-dotnet) - [How To: Read Settings at Run Time With C#](http://msdn.microsoft.com/library/dbe8bf09-5e1c-49da-9192-154033d7240b) - [How To: Write User Settings at Run Time with C#](http://msdn.microsoft.com/library/9d061c7d-b33b-470f-a36d-edccb1d6f9a3) +## See also [Managing Application Settings (.NET)](/visualstudio/ide/managing-application-settings-dotnet) [My.Settings Object](../../../../visual-basic/language-reference/objects/my-settings-object.md) \ No newline at end of file diff --git a/docs/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard.md b/docs/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard.md index 5ab88b696dc80..820141c7ff045 100644 --- a/docs/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard.md +++ b/docs/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard.md @@ -1,5 +1,5 @@ --- -title: "Storing Data to and Reading from the Clipboard (Visual Basic) | Microsoft Docs" +title: "Storing data to and reading from the Clipboard (Visual Basic) | Microsoft Docs" ms.custom: "" ms.date: "2015-07-20" ms.prod: "visual-studio-dev14" @@ -38,7 +38,7 @@ translation.priority.ht: - "zh-cn" - "zh-tw" --- -# Storing Data to and Reading from the Clipboard (Visual Basic) +# Storing data to and reading from the Clipboard (Visual Basic) The Clipboard can be used to store data, such as text and images. Because the Clipboard is shared by all active processes, it can be used to transfer data between them. The `My.Computer.Clipboard` object allows you to easily access the Clipboard and to read from and write to it. ## Reading from the Clipboard @@ -90,9 +90,9 @@ The Clipboard can be used to store data, such as text and images. Because the Cl > [!IMPORTANT] > Because the Clipboard can be accessed by other users, do not use it to store sensitive information, such as passwords or confidential data. -## See Also +## See also - [How to: Read Object Data from an XML File](http://msdn.microsoft.com/library/7e677b93-7526-4f22-9de7-9dffa4c62ef3) - [How to: Write Object Data to an XML File](http://msdn.microsoft.com/library/279c232a-cee5-4e3c-9710-3696875c8ee4) \ No newline at end of file + [How to: Read Object Data from an XML File](../../../programming-guide/concepts/serialization/how-to-read-object-data-from-an-xml-file.md) + [How to: Write Object Data to an XML File](../../../programming-guide/concepts/serialization/how-to-write-object-data-to-an-xml-file.md) \ No newline at end of file diff --git a/docs/visual-basic/developing-apps/programming/drives-directories-files/how-to-read-from-comma-delimited-text-files.md b/docs/visual-basic/developing-apps/programming/drives-directories-files/how-to-read-from-comma-delimited-text-files.md index a916df4b9e2b2..2aa0c827c06c7 100644 --- a/docs/visual-basic/developing-apps/programming/drives-directories-files/how-to-read-from-comma-delimited-text-files.md +++ b/docs/visual-basic/developing-apps/programming/drives-directories-files/how-to-read-from-comma-delimited-text-files.md @@ -1,5 +1,5 @@ --- -title: "How to: Read From Comma-Delimited Text Files in Visual Basic | Microsoft Docs" +title: "How to: read from comma-delimited text files in Visual Basic | Microsoft Docs" ms.custom: "" ms.date: "2015-07-20" ms.prod: "visual-studio-dev14" @@ -36,7 +36,7 @@ translation.priority.ht: - "zh-cn" - "zh-tw" --- -# How to: Read From Comma-Delimited Text Files in Visual Basic +# How to: read from comma-delimited text files in Visual Basic The `TextFieldParser` object provides a way to easily and efficiently parse structured text files, such as logs. The `TextFieldType` property defines whether it is a delimited file or one with fixed-width fields of text. ### To parse a comma delimited text file @@ -62,7 +62,7 @@ The `TextFieldParser` object provides a way to easily and efficiently parse stru [!code-vb[VbFileIORead#19](../../../../visual-basic/developing-apps/programming/drives-directories-files/codesnippet/VisualBasic/how-to-read-from-comma-delimited-text-files_5.vb)] -## Robust Programming +## Robust programming The following conditions may cause an exception: - A row cannot be parsed using the specified format (). The exception message specifies the line causing the exception, while the property is assigned the text contained in the line. @@ -75,11 +75,10 @@ The `TextFieldParser` object provides a way to easily and efficiently parse stru - The user does not have sufficient permissions to access the file (). -## See Also +## See also [How to: Read From Fixed-width Text Files](../../../../visual-basic/developing-apps/programming/drives-directories-files/how-to-read-from-fixed-width-text-files.md) [How to: Read From Text Files with Multiple Formats](../../../../visual-basic/developing-apps/programming/drives-directories-files/how-to-read-from-text-files-with-multiple-formats.md) [Parsing Text Files with the TextFieldParser Object](../../../../visual-basic/developing-apps/programming/drives-directories-files/parsing-text-files-with-the-textfieldparser-object.md) [Walkthrough: Manipulating Files and Directories in Visual Basic](../../../../visual-basic/developing-apps/programming/drives-directories-files/walkthrough-manipulating-files-and-directories.md) - [Troubleshooting: Reading from and Writing to Text Files](../../../../visual-basic/developing-apps/programming/drives-directories-files/troubleshooting-reading-from-and-writing-to-text-files.md) - [Troubleshooting Exceptions: Microsoft.VisualBasic.FileIO.TextFieldParser.MalformedLineException](http://msdn.microsoft.com/library/d780b8cc-c3f1-45ed-8f8e-3f8728a4b770) \ No newline at end of file + [Troubleshooting: Reading from and Writing to Text Files](../../../../visual-basic/developing-apps/programming/drives-directories-files/troubleshooting-reading-from-and-writing-to-text-files.md) \ No newline at end of file diff --git a/docs/visual-basic/developing-apps/programming/drives-directories-files/how-to-read-from-fixed-width-text-files.md b/docs/visual-basic/developing-apps/programming/drives-directories-files/how-to-read-from-fixed-width-text-files.md index 2be75774c19fe..5461ada6816ac 100644 --- a/docs/visual-basic/developing-apps/programming/drives-directories-files/how-to-read-from-fixed-width-text-files.md +++ b/docs/visual-basic/developing-apps/programming/drives-directories-files/how-to-read-from-fixed-width-text-files.md @@ -1,5 +1,5 @@ --- -title: "How to: Read From Fixed-width Text Files in Visual Basic | Microsoft Docs" +title: "How to: read from fixed-width text Files in Visual Basic | Microsoft Docs" ms.custom: "" ms.date: "2015-07-20" ms.prod: "visual-studio-dev14" @@ -37,7 +37,7 @@ translation.priority.ht: - "zh-cn" - "zh-tw" --- -# How to: Read From Fixed-width Text Files in Visual Basic +# How to: read from fixed-width text files in Visual Basic The `TextFieldParser` object provides a way to easily and efficiently parse structured text files, such as logs. The `TextFieldType` property defines whether the parsed file is a delimited file or one that has fixed-width fields of text. In a fixed-width text file, the field at the end can have a variable width. To specify that the field at the end has a variable width, define it to have a width less than or equal to zero. @@ -65,7 +65,7 @@ The `TextFieldParser` object provides a way to easily and efficiently parse stru [!code-vb[VbFileIORead#13](../../../../visual-basic/developing-apps/programming/drives-directories-files/codesnippet/VisualBasic/how-to-read-from-fixed-width-text-files_5.vb)] -## Robust Programming +## Robust programming The following conditions may cause an exception: - A row cannot be parsed using the specified format (). The exception message specifies the line causing the exception, while the property is assigned to the text contained in the line. @@ -78,11 +78,11 @@ The `TextFieldParser` object provides a way to easily and efficiently parse stru - The user does not have sufficient permissions to access the file (). -## See Also +## See also [How to: Read From Comma-Delimited Text Files](../../../../visual-basic/developing-apps/programming/drives-directories-files/how-to-read-from-comma-delimited-text-files.md) [How to: Read From Text Files with Multiple Formats](../../../../visual-basic/developing-apps/programming/drives-directories-files/how-to-read-from-text-files-with-multiple-formats.md) [Parsing Text Files with the TextFieldParser Object](../../../../visual-basic/developing-apps/programming/drives-directories-files/parsing-text-files-with-the-textfieldparser-object.md) [Walkthrough: Manipulating Files and Directories in Visual Basic](../../../../visual-basic/developing-apps/programming/drives-directories-files/walkthrough-manipulating-files-and-directories.md) [Troubleshooting: Reading from and Writing to Text Files](../../../../visual-basic/developing-apps/programming/drives-directories-files/troubleshooting-reading-from-and-writing-to-text-files.md) - [Troubleshooting Exceptions: Microsoft.VisualBasic.FileIO.TextFieldParser.MalformedLineException](http://msdn.microsoft.com/library/d780b8cc-c3f1-45ed-8f8e-3f8728a4b770) \ No newline at end of file + \ No newline at end of file diff --git a/docs/visual-basic/developing-apps/programming/drives-directories-files/parsing-text-files-with-the-textfieldparser-object.md b/docs/visual-basic/developing-apps/programming/drives-directories-files/parsing-text-files-with-the-textfieldparser-object.md index 06c4abc8626b5..0bfcc79599f21 100644 --- a/docs/visual-basic/developing-apps/programming/drives-directories-files/parsing-text-files-with-the-textfieldparser-object.md +++ b/docs/visual-basic/developing-apps/programming/drives-directories-files/parsing-text-files-with-the-textfieldparser-object.md @@ -1,5 +1,5 @@ --- -title: "Parsing Text Files with the TextFieldParser Object (Visual Basic) | Microsoft Docs" +title: "Parsing text files with the TextFieldParser object (Visual Basic) | Microsoft Docs" ms.custom: "" ms.date: "2015-07-20" ms.prod: "visual-studio-dev14" @@ -35,10 +35,10 @@ translation.priority.ht: - "zh-cn" - "zh-tw" --- -# Parsing Text Files with the TextFieldParser Object (Visual Basic) +# Parsing text files with the TextFieldParser object (Visual Basic) The `TextFieldParser` object allows you to parse and process very large file that are structured as delimited-width columns of text, such as log files or legacy database information. Parsing a text file with `TextFieldParser` is similar to iterating over a text file, while the parse method to extract fields of text is similar to string manipulation methods used to tokenize delimited strings. -## Parsing Different Types of Text Files +## Parsing different types of text files Text files may have fields of various width, delimited by a character such as a comma or a tab space. Define `TextFieldType` and the delimiter, as in the following example, which uses the `SetDelimiters` method to define a tab-delimited text file: [!code-vb[VbVbalrTextFieldParser#21](../../../../visual-basic/developing-apps/development-with-my/codesnippet/VisualBasic/parsing-text-files-with-the-textfieldparser-object_1.vb)] @@ -51,10 +51,10 @@ The `TextFieldParser` object allows you to parse and process very large file tha If a field does not match the specified format, a exception is thrown. When such exceptions are thrown, the `ErrorLine` and `ErrorLineNumber` properties hold the text causing the exception and the line number of that text. -## Parsing Files with Multiple Formats +## Parsing files with multiple formats The `PeekChars` method of the `TextFieldParser` object can be used to check each field before reading it, allowing you to define multiple formats for the fields and react accordingly. For more information, see [How to: Read From Text Files with Multiple Formats](../../../../visual-basic/developing-apps/programming/drives-directories-files/how-to-read-from-text-files-with-multiple-formats.md). -## See Also +## See also @@ -69,5 +69,4 @@ The `TextFieldParser` object allows you to parse and process very large file tha - - [Troubleshooting Exceptions: Microsoft.VisualBasic.FileIO.TextFieldParser.MalformedLineException](http://msdn.microsoft.com/library/d780b8cc-c3f1-45ed-8f8e-3f8728a4b770) \ No newline at end of file + \ No newline at end of file diff --git a/docs/visual-basic/developing-apps/programming/drives-directories-files/troubleshooting-reading-from-and-writing-to-text-files.md b/docs/visual-basic/developing-apps/programming/drives-directories-files/troubleshooting-reading-from-and-writing-to-text-files.md index 52e63e60b2cd5..2c8926d22f837 100644 --- a/docs/visual-basic/developing-apps/programming/drives-directories-files/troubleshooting-reading-from-and-writing-to-text-files.md +++ b/docs/visual-basic/developing-apps/programming/drives-directories-files/troubleshooting-reading-from-and-writing-to-text-files.md @@ -1,5 +1,5 @@ --- -title: "Troubleshooting: Reading from and Writing to Text Files (Visual Basic) | Microsoft Docs" +title: "Troubleshooting: reading from and writing to text files (Visual Basic) | Microsoft Docs" ms.custom: "" ms.date: "2015-07-20" ms.prod: "visual-studio-dev14" @@ -38,22 +38,22 @@ translation.priority.ht: - "zh-cn" - "zh-tw" --- -# Troubleshooting: Reading from and Writing to Text Files (Visual Basic) +# Troubleshooting: reading from and writing to text files (Visual Basic) This topic discusses common problems encountered when working with text files and suggests an approach to each. -## Common Problems +## Common problems The most common issues encountered when working with text files include security exceptions, file encodings, or invalid paths. -### Security Exceptions - A is thrown when a security error occurs. This is often a result of the user lacking necessary permissions, which may be solved by adding permissions or working with files in isolated storage. For more information, see [Troubleshooting Exceptions: System.Security.SecurityException](http://msdn.microsoft.com/library/7679ef74-dd15-439f-bfeb-0fb45f8b2373). +### Security exceptions + A is thrown when a security error occurs. This is often a result of the user lacking necessary permissions, which may be solved by adding permissions or working with files in isolated storage. -### File Encodings +### File encodings File encodings, also known as character encodings, specify how to represent characters when text processing. Unexpected characters in a text file may result from incorrect encoding. For most files, one encoding may be preferable over another in terms of which language characters it can or cannot handle, although Unicode is usually preferred. For more information, see [File Encodings](../../../../visual-basic/developing-apps/programming/drives-directories-files/file-encodings.md) and . -### Incorrect Paths +### Incorrect paths When parsing file paths, particularly relative paths, it is easy to supply the wrong data. Many problems can be corrected by making sure you are supplying the correct path. For more information, see [How to: Parse File Paths](../../../../visual-basic/developing-apps/programming/drives-directories-files/how-to-parse-file-paths.md). -## See Also +## See also [Reading from Files](../../../../visual-basic/developing-apps/programming/drives-directories-files/reading-from-files.md) [Writing to Files](../../../../visual-basic/developing-apps/programming/drives-directories-files/writing-to-files.md) diff --git a/docs/visual-basic/developing-apps/programming/index.md b/docs/visual-basic/developing-apps/programming/index.md index d23c66d2f7f91..983f5ec953e76 100644 --- a/docs/visual-basic/developing-apps/programming/index.md +++ b/docs/visual-basic/developing-apps/programming/index.md @@ -37,7 +37,7 @@ translation.priority.ht: # Programming in Visual Basic This section discusses programming tasks that you may want to learn more about as you create your Visual Basic application. -## In This Section +## In this section [Accessing Computer Resources](../../../visual-basic/developing-apps/programming/computer-resources/index.md) Contains documentation on how to use the `My.Computer` object to access information about the computer on which an application runs and how to control the computer. @@ -61,6 +61,6 @@ This section discusses programming tasks that you may want to learn more about a ## See Also [Visual Basic Language Features](../../../visual-basic/programming-guide/language-features/index.md) - [Programming Concepts](http://msdn.microsoft.com/library/65c12cca-af4f-4017-886e-2dbc00a189d6) - [Collections](http://msdn.microsoft.com/library/e76533a9-5033-4a0b-b003-9c2be60d185b) + [Programming Concepts](../../../visual-basic/programming-guide/concepts/index.md) + [Collections](../../../visual-basic/programming-guide/concepts/collections.md) [Developing Applications with Visual Basic](../../../visual-basic/developing-apps/index.md) \ No newline at end of file diff --git a/docs/visual-basic/developing-apps/using-ide/settings.md b/docs/visual-basic/developing-apps/using-ide/settings.md index 4a30129481f15..e6cbfe37a329d 100644 --- a/docs/visual-basic/developing-apps/using-ide/settings.md +++ b/docs/visual-basic/developing-apps/using-ide/settings.md @@ -1,5 +1,5 @@ --- -title: "Visual Basic Settings | Microsoft Docs" +title: "Visual Basic settings | Microsoft Docs" ms.custom: "" ms.date: "2015-07-20" ms.prod: "visual-studio-dev14" @@ -33,12 +33,12 @@ translation.priority.ht: - "zh-cn" - "zh-tw" --- -# Visual Basic Settings +# Visual Basic settings Visual Basic settings are designed to optimize the user experience and to maximize the productivity of Visual Basic developers. It is part of the [Customizing Development Settings in Visual Studio](http://msdn.microsoft.com/en-us/22c4debb-4e31-47a8-8f19-16f328d7dcd3) feature, which enables you to customize and save your settings in the Visual Studio Integrated Development Environment (IDE). You can also port or reload your IDE settings on other computers. For more information, see [How to: Share Settings Between Computers](http://msdn.microsoft.com/en-us/1131fb10-35c1-42da-9cd8-91aa3235b882). -## Windows and Views +## Windows and views |Feature|Displayed by default?|Notes| |---|---|---| @@ -49,16 +49,16 @@ Visual Basic settings are designed to optimize the user experience and to maximi |[Object Browser](/visualstudio/ide/viewing-the-structure-of-code)|No|Displays, by default:

- Namespaces
- Public members
- Inherited members| |[Output Window](/visualstudio/ide/reference/output-window)|Yes, when build starts.|| |[Properties Window](/visualstudio/ide/reference/properties-window)|Yes|| -|`Solution Explorer`|Yes|| -|[Server Explorer](http://msdn.microsoft.com/library/4ea29b3b-bbb2-45e4-9082-eaf635c41c4d)|No|Displays data connections and available system services.| +|**Solution Explorer**|Yes|| +|**Server Explorer**|No|Displays data connections and available system services.| |[Start Page](/visualstudio/ide/customizing-the-start-page-for-visual-studio)|Yes|Appears the first time you start the IDE. You can customize it.| -|[\ Task List (Visual Studio)](http://msdn.microsoft.com/en-us/ce97c0e2-5011-499a-b60a-dc5b9cc22654)|Yes, when compile errors or warnings exist.|| +|**Task List**|Yes, when compile errors or warnings exist.|| |[Team Explorer](http://msdn.microsoft.com/library/1372e56c-b34f-42c2-b72c-94b57620c75c)|Yes|You can use Team Explorer to access your team projects and use the application lifecycle management features of Team Foundation. These include version control, builds, project management, integrated reports, and dashboards.| |[Toolbox](/visualstudio/ide/reference/toolbox)|Yes|Displays controls and components in alphabetical order.| In addition, the following elements have certain behaviors enabled when you select **Visual Basic Development Settings**. -## Dialog Boxes +## Dialog boxes |Feature|Behavior| |---|---| @@ -71,7 +71,7 @@ Visual Basic settings are designed to optimize the user experience and to maximi |---|---| |Visual Basic 6.0 default shortcut keys|Supports typical Visual Basic 6 keyboard mapping.| -## Miscellaneous IDE Elements +## Miscellaneous IDE elements |Feature|Behavior| |---|---| @@ -82,5 +82,4 @@ Visual Basic settings are designed to optimize the user experience and to maximi ## See Also [How to: Change Select Settings](http://msdn.microsoft.com/en-us/ec70b520-a3e3-43c9-929b-bdc732cd2147) [How to: Specify Settings for a Team](http://msdn.microsoft.com/en-us/89eeee3d-dd5e-4815-a45b-c48add63a8aa) - [\ Import and Export Settings, Environment, Options Dialog Box](http://msdn.microsoft.com/en-us/536fb39a-83a4-4b5b-afd6-8e6c42f980fe) [How to: Share Settings Between Computers or Visual Studio Versions](http://msdn.microsoft.com/en-us/1131fb10-35c1-42da-9cd8-91aa3235b882) \ No newline at end of file diff --git a/docs/visual-basic/developing-apps/windows-forms/deploying-applications-that-reference-power-packs-controls-visual-studio.md b/docs/visual-basic/developing-apps/windows-forms/deploying-applications-that-reference-power-packs-controls-visual-studio.md index c7649eb0e9043..d387b0a0575b6 100644 --- a/docs/visual-basic/developing-apps/windows-forms/deploying-applications-that-reference-power-packs-controls-visual-studio.md +++ b/docs/visual-basic/developing-apps/windows-forms/deploying-applications-that-reference-power-packs-controls-visual-studio.md @@ -1,5 +1,5 @@ --- -title: "Deploying Applications That Reference Power Packs Controls (Visual Studio) | Microsoft Docs" +title: "Deploying applications that reference Power Packs controls (Visual Studio) | Microsoft Docs" ms.custom: "" ms.date: "2015-07-20" ms.prod: "visual-studio-dev14" @@ -33,10 +33,10 @@ translation.priority.ht: - "zh-cn" - "zh-tw" --- -# Deploying Applications That Reference Power Packs Controls (Visual Studio) +# Deploying applications that reference Power Packs controls (Visual Studio) If you want to deploy an application that references the Power Packs controls (, , , or ), the controls must be installed on the destination computer. -## Installing the Power Packs Controls as a Prerequisite +## Installing the Power Packs controls as a prerequisite To successfully deploy an application, you must also deploy all components that are referenced by the application. The process of installing prerequisite components is known as *bootstrapping*. When [!INCLUDE[vsprvs](../../../csharp/includes/vsprvs_md.md)] is installed on your development computer, a Power Packs bootstrapper package is added to the [!INCLUDE[vsprvs](../../../csharp/includes/vsprvs_md.md)] bootstrapper directory. This package is then available when you follow the procedures for adding prerequisites for either [!INCLUDE[ndptecclick](../../../visual-basic/developing-apps/printing/includes/ndptecclick_md.md)] or Windows Installer deployment. @@ -50,8 +50,6 @@ If you want to deploy an application that references the Power Packs controls (< As an alternative to bootstrapping, you can pre-deploy the Power Packs controls by using an electronic software distribution system such as Microsoft Systems Management Server. -## See Also - [How to: Install Prerequisites in Windows Installer Deployment](http://msdn.microsoft.com/en-us/653fc868-2486-429c-b75e-2f9d0c7f6619) +## See also [How to: Install Prerequisites with a ClickOnce Application](http://msdn.microsoft.com/library/e964fca5-fdfd-47cf-a1c9-7fb96b1c88b5) - [Not in Build: Choosing a Deployment Strategy](http://msdn.microsoft.com/en-us/ecd632d8-063c-4028-b785-81bba045107b) [Visual Basic Power Packs Controls](../../../visual-basic/developing-apps/windows-forms/power-packs-controls.md) \ No newline at end of file diff --git a/docs/visual-basic/getting-started/index.md b/docs/visual-basic/getting-started/index.md index d0857ac5a84f1..2c05474d91e34 100644 --- a/docs/visual-basic/getting-started/index.md +++ b/docs/visual-basic/getting-started/index.md @@ -1,5 +1,5 @@ --- -title: "Getting Started with Visual Basic | Microsoft Docs" +title: "Getting started with Visual Basic | Microsoft Docs" ms.custom: "" ms.date: "2015-07-20" ms.prod: "visual-studio-dev14" @@ -35,10 +35,10 @@ translation.priority.mt: - "pt-br" - "tr-tr" --- -# Getting Started with Visual Basic +# Getting started with Visual Basic This section of the documentation helps you get started with Visual Basic application development. -## In This Section +## In this section [Visual Basic Breaking Changes in Visual Studio 2015](../../visual-basic/getting-started/breaking-changes-in-visual-studio-2015.md) Lists changes in this release that might prevent an application from compiling or change its run-time behavior. @@ -51,8 +51,8 @@ This section of the documentation helps you get started with Visual Basic applic [Get Visual Basic](https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx) Provides download links for Visual Studio versions that include Visual basic support, including free versions. -## Related Sections - [Object-Oriented Programming](http://msdn.microsoft.com/library/1cf6e655-3f30-45f1-9a5d-4a88ca24a1c2) +## Related sections + [Object-Oriented Programming](../programming-guide/concepts/object-oriented-programming.md) Provides links to pages that introduce object-oriented programming and describe how to create your own objects and how to use objects to simplify your coding. [Samples](../../visual-basic/sample-applications.md) diff --git a/docs/visual-basic/getting-started/whats-new.md b/docs/visual-basic/getting-started/whats-new.md index 8afb4fc41aab2..81a82c0302c3c 100644 --- a/docs/visual-basic/getting-started/whats-new.md +++ b/docs/visual-basic/getting-started/whats-new.md @@ -1,5 +1,5 @@ --- -title: "What's New for Visual Basic | Microsoft Docs" +title: "What's new for Visual Basic | Microsoft Docs" ms.custom: "" ms.date: "2015-07-20" ms.prod: "visual-studio-dev14" @@ -37,10 +37,10 @@ translation.priority.ht: - "zh-cn" - "zh-tw" --- -# What's New for Visual Basic +# What's new for Visual Basic This page lists key feature names for each version of Visual Basic with descriptions of the new and enhanced features in the lastest version of the language. -## Previous Versions +## Previous versions Visual Basic / Visual Studio .NET 2002 First release @@ -65,12 +65,12 @@ This page lists key feature names for each version of Visual Basic with descript Visual Basic / Visual Studio .NET 2015 Current version, see below -## Current Version +## Current version [Nameof](../../csharp/language-reference/keywords/nameof.md) You can get the unqualified string name of a type or member for use in an error message without hard coding a string. This allows your code to remain correct when refactoring. This feature is also useful for hooking up model-view-controller MVC links and firing property changed events. [String Interpolation](../../csharp/language-reference/keywords/interpolated-strings.md) - You can use string interpolation expressions to construct strings. An interpolated string expression looks like a template string that contains expressions. C# creates a string by replacing the expressions with the ToString represenations of the expressions’ results. An interpolated string is easier to understand with respect to arguments than [Composite Formatting](http://msdn.microsoft.com/library/87b7d528-73f6-43c6-b71a-f23043039a49). + You can use string interpolation expressions to construct strings. An interpolated string expression looks like a template string that contains expressions. An interpolated string is easier to understand with respect to arguments than [Composite Formatting](../../standard/base-types/composite-format.md). [Null-conditional Member Access and Indexing](../../csharp/language-reference/operators/null-conditional-operators.md) You can test for null in a very light syntactic way before performing a member access (`?.`) or index (`?[]`) operation. These operators help you write less code to handle null checks, especially for descending into data structures. If the left operand or object reference is null, the operations returns null. @@ -134,5 +134,5 @@ End Interface Now the compiler will use normal overload resolution rules to choose the most appropriate `GetDetails` to call, and you can declare interface relationships in Visual Basic like those shown in the sample. -## See Also +## See also [What's New in Visual Studio 2015](/visualstudio/ide/what-s-new-in-visual-studio-2015) \ No newline at end of file