Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Apress committed Oct 12, 2016
0 parents commit 2b9bb8e
Show file tree
Hide file tree
Showing 6,051 changed files with 140,827 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file added 3983.pdf
Binary file not shown.
Binary file added 3984.pdf
Binary file not shown.
Binary file added 9781590599709.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions Chapter01/Chapter01.sln
@@ -0,0 +1,56 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Recipe01-01", "Recipe01-01\Recipe01-01.vbproj", "{33454717-D055-4B8B-9DB7-A696E5918296}"
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Recipe01-02", "Recipe01-02\Recipe01-02.vbproj", "{7467B826-0CB6-4883-87EA-C3D8192AE4B4}"
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Recipe01-05", "Recipe01-05\Recipe01-05.vbproj", "{FE4CC1E4-1D28-4241-B3E9-D38B3B19F84A}"
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Recipe01-07", "Recipe01-07\Recipe01-07.vbproj", "{53AD8336-710B-4DDD-904F-11D37DBD9A97}"
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Recipe01-08", "Recipe01-08\Recipe01-08.vbproj", "{916E5C9E-F5C9-432F-B1D0-7042FA9A9130}"
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Recipe01-09", "Recipe01-09\Recipe01-09.vbproj", "{542A078C-56F9-4B31-B926-445ECE206F16}"
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Recipe01-12", "Recipe01-12\Recipe01-12.vbproj", "{8BE65ED6-75FE-4B0F-9F44-29B3F6B57C6C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{33454717-D055-4B8B-9DB7-A696E5918296}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{33454717-D055-4B8B-9DB7-A696E5918296}.Debug|Any CPU.Build.0 = Debug|Any CPU
{33454717-D055-4B8B-9DB7-A696E5918296}.Release|Any CPU.ActiveCfg = Release|Any CPU
{33454717-D055-4B8B-9DB7-A696E5918296}.Release|Any CPU.Build.0 = Release|Any CPU
{7467B826-0CB6-4883-87EA-C3D8192AE4B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7467B826-0CB6-4883-87EA-C3D8192AE4B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7467B826-0CB6-4883-87EA-C3D8192AE4B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7467B826-0CB6-4883-87EA-C3D8192AE4B4}.Release|Any CPU.Build.0 = Release|Any CPU
{FE4CC1E4-1D28-4241-B3E9-D38B3B19F84A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FE4CC1E4-1D28-4241-B3E9-D38B3B19F84A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FE4CC1E4-1D28-4241-B3E9-D38B3B19F84A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FE4CC1E4-1D28-4241-B3E9-D38B3B19F84A}.Release|Any CPU.Build.0 = Release|Any CPU
{53AD8336-710B-4DDD-904F-11D37DBD9A97}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{53AD8336-710B-4DDD-904F-11D37DBD9A97}.Debug|Any CPU.Build.0 = Debug|Any CPU
{53AD8336-710B-4DDD-904F-11D37DBD9A97}.Release|Any CPU.ActiveCfg = Release|Any CPU
{53AD8336-710B-4DDD-904F-11D37DBD9A97}.Release|Any CPU.Build.0 = Release|Any CPU
{916E5C9E-F5C9-432F-B1D0-7042FA9A9130}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{916E5C9E-F5C9-432F-B1D0-7042FA9A9130}.Debug|Any CPU.Build.0 = Debug|Any CPU
{916E5C9E-F5C9-432F-B1D0-7042FA9A9130}.Release|Any CPU.ActiveCfg = Release|Any CPU
{916E5C9E-F5C9-432F-B1D0-7042FA9A9130}.Release|Any CPU.Build.0 = Release|Any CPU
{542A078C-56F9-4B31-B926-445ECE206F16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{542A078C-56F9-4B31-B926-445ECE206F16}.Debug|Any CPU.Build.0 = Debug|Any CPU
{542A078C-56F9-4B31-B926-445ECE206F16}.Release|Any CPU.ActiveCfg = Release|Any CPU
{542A078C-56F9-4B31-B926-445ECE206F16}.Release|Any CPU.Build.0 = Release|Any CPU
{8BE65ED6-75FE-4B0F-9F44-29B3F6B57C6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8BE65ED6-75FE-4B0F-9F44-29B3F6B57C6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8BE65ED6-75FE-4B0F-9F44-29B3F6B57C6C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8BE65ED6-75FE-4B0F-9F44-29B3F6B57C6C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file added Chapter01/Chapter01.suo
Binary file not shown.
38 changes: 38 additions & 0 deletions Chapter01/Recipe01-01/ConsoleUtils.vb
@@ -0,0 +1,38 @@
Imports System

Namespace Apress.VisualBasicRecipes.Chapter01

Public Class ConsoleUtils

' This method will display a prompt and read a response from the console.
Public Shared Function ReadString(ByVal message As String) As String

Console.Write(message)
Return Console.ReadLine

End Function
' This method will display a message on the console.
Public Shared Sub WriteString(ByVal message As String)

Console.WriteLine(message)

End Sub
' This method is used for testing ConsoleUtility methods.
' While it is not good practice to have multiple Main
' methods in an assembly, it sometimes can't be avoided.
' You specify in the compiler which Main sub routine should
' be used as the entry point. For this example, this Main
' routine will never be executed.
Public Shared Sub Main()

' Prompt the reader to enter a name.
Dim name As String = ReadString("Please enter a name: ")

' Welcome the reader to Visual Basic 2008 Recipes.
WriteString("Welcome to Visual Basic 2008 Recipes, " & name)

End Sub

End Class

End Namespace
Binary file added Chapter01/Recipe01-01/HelloWorld.exe
Binary file not shown.
18 changes: 18 additions & 0 deletions Chapter01/Recipe01-01/HelloWorld.vb
@@ -0,0 +1,18 @@
Imports System

Namespace Apress.VisualBasicRecipes.Chapter01

Public Class HelloWorld

Public Shared Sub Main()

ConsoleUtils.WriteString("Hello, World")

ConsoleUtils.WriteString(vbCrLf & "Main method complete. Press Enter.")
Console.ReadLine()

End Sub

End Class

End Namespace
13 changes: 13 additions & 0 deletions Chapter01/Recipe01-01/My Project/Application.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Chapter01/Recipe01-01/My Project/Application.myapp
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<MySubMain>false</MySubMain>
<SingleInstance>false</SingleInstance>
<ShutdownMode>0</ShutdownMode>
<EnableVisualStyles>true</EnableVisualStyles>
<AuthenticationMode>0</AuthenticationMode>
<ApplicationType>2</ApplicationType>
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
</MyApplicationData>
35 changes: 35 additions & 0 deletions Chapter01/Recipe01-01/My Project/AssemblyInfo.vb
@@ -0,0 +1,35 @@
Imports System
Imports System.Reflection
Imports System.Runtime.InteropServices

' General Information about an assembly is controlled through the following
' set of attributes. Change these attribute values to modify the information
' associated with an assembly.

' Review the values of the assembly attributes

<Assembly: AssemblyTitle("Recipe01-01")>
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("")>
<Assembly: AssemblyProduct("Recipe01-01")>
<Assembly: AssemblyCopyright("Copyright © 2007")>
<Assembly: AssemblyTrademark("")>

<Assembly: ComVisible(False)>

'The following GUID is for the ID of the typelib if this project is exposed to COM
<Assembly: Guid("fbb5290a-7e67-4e72-ac4b-f46644fafbbe")>

' Version information for an assembly consists of the following four values:
'
' Major Version
' Minor Version
' Build Number
' Revision
'
' You can specify all the values or you can default the Build and Revision Numbers
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("1.0.0.0")>
<Assembly: AssemblyFileVersion("1.0.0.0")>
63 changes: 63 additions & 0 deletions Chapter01/Recipe01-01/My Project/Resources.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

117 changes: 117 additions & 0 deletions Chapter01/Recipe01-01/My Project/Resources.resx
@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

0 comments on commit 2b9bb8e

Please sign in to comment.