├── VisualBasicPictureViewerApp ├── obj │ └── Debug │ │ ├── VisualBasicPictureViewerApp.vbproj.CoreCompileInputs.cache │ │ ├── VisualBasicPictureViewerApp.exe │ │ ├── VisualBasicPictureViewerApp.pdb │ │ ├── TempPE │ │ └── My Project.Resources.Designer.vb.dll │ │ ├── VisualBasicPictureViewerApp.Form1.resources │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── VisualBasicPictureViewerApp.Resources.resources │ │ ├── VisualBasicPictureViewerApp.vbproj.AssemblyReference.cache │ │ ├── VisualBasicPictureViewerApp.vbproj.GenerateResource.cache │ │ ├── VisualBasicPictureViewerApp.xml │ │ └── VisualBasicPictureViewerApp.vbproj.FileListAbsolute.txt ├── bin │ └── Debug │ │ ├── VisualBasicPictureViewerApp.exe │ │ ├── VisualBasicPictureViewerApp.pdb │ │ ├── VisualBasicPictureViewerApp.exe.config │ │ └── VisualBasicPictureViewerApp.xml ├── App.config ├── My Project │ ├── Settings.settings │ ├── Application.myapp │ ├── AssemblyInfo.vb │ ├── Application.Designer.vb │ ├── Resources.Designer.vb │ ├── Settings.Designer.vb │ └── Resources.resx ├── Form1.vb ├── VisualBasicPictureViewerApp.vbproj ├── Form1.resx └── Form1.Designer.vb ├── README.md └── VisualBasicPictureViewerApp.sln /VisualBasicPictureViewerApp/obj/Debug/VisualBasicPictureViewerApp.vbproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 5c57553cbe005345e640834792d01b3c04d0b0d3 2 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/bin/Debug/VisualBasicPictureViewerApp.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VitRod/VisualBasicPictureViewerApp/HEAD/VisualBasicPictureViewerApp/bin/Debug/VisualBasicPictureViewerApp.exe -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/bin/Debug/VisualBasicPictureViewerApp.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VitRod/VisualBasicPictureViewerApp/HEAD/VisualBasicPictureViewerApp/bin/Debug/VisualBasicPictureViewerApp.pdb -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/obj/Debug/VisualBasicPictureViewerApp.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VitRod/VisualBasicPictureViewerApp/HEAD/VisualBasicPictureViewerApp/obj/Debug/VisualBasicPictureViewerApp.exe -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/obj/Debug/VisualBasicPictureViewerApp.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VitRod/VisualBasicPictureViewerApp/HEAD/VisualBasicPictureViewerApp/obj/Debug/VisualBasicPictureViewerApp.pdb -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VitRod/VisualBasicPictureViewerApp/HEAD/VisualBasicPictureViewerApp/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/obj/Debug/VisualBasicPictureViewerApp.Form1.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VitRod/VisualBasicPictureViewerApp/HEAD/VisualBasicPictureViewerApp/obj/Debug/VisualBasicPictureViewerApp.Form1.resources -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VitRod/VisualBasicPictureViewerApp/HEAD/VisualBasicPictureViewerApp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/obj/Debug/VisualBasicPictureViewerApp.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VitRod/VisualBasicPictureViewerApp/HEAD/VisualBasicPictureViewerApp/obj/Debug/VisualBasicPictureViewerApp.Resources.resources -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/obj/Debug/VisualBasicPictureViewerApp.vbproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VitRod/VisualBasicPictureViewerApp/HEAD/VisualBasicPictureViewerApp/obj/Debug/VisualBasicPictureViewerApp.vbproj.AssemblyReference.cache -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/obj/Debug/VisualBasicPictureViewerApp.vbproj.GenerateResource.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VitRod/VisualBasicPictureViewerApp/HEAD/VisualBasicPictureViewerApp/obj/Debug/VisualBasicPictureViewerApp.vbproj.GenerateResource.cache -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/bin/Debug/VisualBasicPictureViewerApp.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/My Project/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # VisualBasicPictureViewerApp 2 | Application in the language Visual Basic .NET that allows to choose background and then choose any picture from the computer and show it . 3 | 4 | ![](https://pbs.twimg.com/media/FVX3ABPWYAEeyFV?format=png&name=900x900) 5 | 6 | ![](https://pbs.twimg.com/media/FVX3Ax-WUAYMrJy?format=png&name=900x900) 7 | 8 | ![](https://pbs.twimg.com/media/FVX3BgHWYAEq3h_?format=png&name=900x900) 9 | 10 | ![](https://pbs.twimg.com/media/FVX3CQ0WQAIpsXk?format=png&name=900x900) 11 | 12 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/My Project/Application.myapp: -------------------------------------------------------------------------------- 1 | 2 | 3 | true 4 | Form1 5 | false 6 | 0 7 | true 8 | 0 9 | 0 10 | true 11 | 12 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/bin/Debug/VisualBasicPictureViewerApp.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | VisualBasicPictureViewerApp 6 | 7 | 8 | 9 | 10 | 11 | A strongly-typed resource class, for looking up localized strings, etc. 12 | 13 | 14 | 15 | 16 | Returns the cached ResourceManager instance used by this class. 17 | 18 | 19 | 20 | 21 | Overrides the current thread's CurrentUICulture property for all 22 | resource lookups using this strongly typed resource class. 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/obj/Debug/VisualBasicPictureViewerApp.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | VisualBasicPictureViewerApp 6 | 7 | 8 | 9 | 10 | 11 | A strongly-typed resource class, for looking up localized strings, etc. 12 | 13 | 14 | 15 | 16 | Returns the cached ResourceManager instance used by this class. 17 | 18 | 19 | 20 | 21 | Overrides the current thread's CurrentUICulture property for all 22 | resource lookups using this strongly typed resource class. 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.32510.428 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "VisualBasicPictureViewerApp", "VisualBasicPictureViewerApp\VisualBasicPictureViewerApp.vbproj", "{4C9A7879-150F-4B30-9212-8696B0CAB4C6}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {4C9A7879-150F-4B30-9212-8696B0CAB4C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {4C9A7879-150F-4B30-9212-8696B0CAB4C6}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {4C9A7879-150F-4B30-9212-8696B0CAB4C6}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {4C9A7879-150F-4B30-9212-8696B0CAB4C6}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {DE3DD10E-A571-4BC4-9707-9B2087FF6EF6} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/My Project/AssemblyInfo.vb: -------------------------------------------------------------------------------- 1 | Imports System 2 | Imports System.Reflection 3 | Imports System.Runtime.InteropServices 4 | 5 | ' General Information about an assembly is controlled through the following 6 | ' set of attributes. Change these attribute values to modify the information 7 | ' associated with an assembly. 8 | 9 | ' Review the values of the assembly attributes 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 'The following GUID is for the ID of the typelib if this project is exposed to COM 21 | 22 | 23 | ' Version information for an assembly consists of the following four values: 24 | ' 25 | ' Major Version 26 | ' Minor Version 27 | ' Build Number 28 | ' Revision 29 | ' 30 | ' You can specify all the values or you can default the Build and Revision Numbers 31 | ' by using the '*' as shown below: 32 | ' 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/Form1.vb: -------------------------------------------------------------------------------- 1 | Public Class Form1 2 | Private Sub showButton_Click() Handles showButton.Click 3 | 4 | If OpenFileDialog1.ShowDialog() = DialogResult.OK Then 5 | PictureBox1.Load(OpenFileDialog1.FileName) 6 | End If 7 | 8 | End Sub 9 | 10 | Private Sub clearButton_Click() Handles clearButton.Click 11 | 12 | ' Clear the picture. 13 | PictureBox1.Image = Nothing 14 | 15 | End Sub 16 | 17 | Private Sub backgroundButton_Click() Handles backgroundButton.Click 18 | 19 | ' Show the color dialog box. If the user clicks OK, change the 20 | ' PictureBox control's background to the color the user chose. 21 | If ColorDialog1.ShowDialog() = DialogResult.OK Then 22 | PictureBox1.BackColor = ColorDialog1.Color 23 | End If 24 | 25 | End Sub 26 | 27 | Private Sub closeButton_Click() Handles closeButton.Click 28 | 29 | ' Close the form. 30 | Close() 31 | 32 | End Sub 33 | 34 | Private Sub CheckBox1_CheckedChanged() Handles CheckBox1.CheckedChanged 35 | 36 | ' If the user selects the Stretch check box, change 37 | ' the PictureBox's SizeMode property to "Stretch". If the user 38 | ' clears the check box, change it to "Normal". 39 | If CheckBox1.Checked Then 40 | PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage 41 | Else 42 | PictureBox1.SizeMode = PictureBoxSizeMode.Normal 43 | End If 44 | 45 | 46 | End Sub 47 | 48 | 49 | End Class 50 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/My Project/Application.Designer.vb: -------------------------------------------------------------------------------- 1 | '------------------------------------------------------------------------------ 2 | ' 3 | ' This code was generated by a tool. 4 | ' Runtime Version:4.0.30319.42000 5 | ' 6 | ' Changes to this file may cause incorrect behavior and will be lost if 7 | ' the code is regenerated. 8 | ' 9 | '------------------------------------------------------------------------------ 10 | 11 | Option Strict On 12 | Option Explicit On 13 | 14 | 15 | Namespace My 16 | 17 | 'NOTE: This file is auto-generated; do not modify it directly. To make changes, 18 | ' or if you encounter build errors in this file, go to the Project Designer 19 | ' (go to Project Properties or double-click the My Project node in 20 | ' Solution Explorer), and make changes on the Application tab. 21 | ' 22 | Partial Friend Class MyApplication 23 | 24 | _ 25 | Public Sub New() 26 | MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows) 27 | Me.IsSingleInstance = false 28 | Me.EnableVisualStyles = true 29 | Me.SaveMySettingsOnExit = true 30 | Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses 31 | End Sub 32 | 33 | _ 34 | Protected Overrides Sub OnCreateMainForm() 35 | Me.MainForm = Global.VisualBasicPictureViewerApp.Form1 36 | End Sub 37 | End Class 38 | End Namespace 39 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/obj/Debug/VisualBasicPictureViewerApp.vbproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | H:\Visual Studio IDE versions\WorkspaceCSharpProjects2022\VisualBasicPictureViewerApp\VisualBasicPictureViewerApp\bin\Debug\VisualBasicPictureViewerApp.exe.config 2 | H:\Visual Studio IDE versions\WorkspaceCSharpProjects2022\VisualBasicPictureViewerApp\VisualBasicPictureViewerApp\bin\Debug\VisualBasicPictureViewerApp.exe 3 | H:\Visual Studio IDE versions\WorkspaceCSharpProjects2022\VisualBasicPictureViewerApp\VisualBasicPictureViewerApp\bin\Debug\VisualBasicPictureViewerApp.pdb 4 | H:\Visual Studio IDE versions\WorkspaceCSharpProjects2022\VisualBasicPictureViewerApp\VisualBasicPictureViewerApp\bin\Debug\VisualBasicPictureViewerApp.xml 5 | H:\Visual Studio IDE versions\WorkspaceCSharpProjects2022\VisualBasicPictureViewerApp\VisualBasicPictureViewerApp\obj\Debug\VisualBasicPictureViewerApp.vbproj.AssemblyReference.cache 6 | H:\Visual Studio IDE versions\WorkspaceCSharpProjects2022\VisualBasicPictureViewerApp\VisualBasicPictureViewerApp\obj\Debug\VisualBasicPictureViewerApp.Form1.resources 7 | H:\Visual Studio IDE versions\WorkspaceCSharpProjects2022\VisualBasicPictureViewerApp\VisualBasicPictureViewerApp\obj\Debug\VisualBasicPictureViewerApp.Resources.resources 8 | H:\Visual Studio IDE versions\WorkspaceCSharpProjects2022\VisualBasicPictureViewerApp\VisualBasicPictureViewerApp\obj\Debug\VisualBasicPictureViewerApp.vbproj.GenerateResource.cache 9 | H:\Visual Studio IDE versions\WorkspaceCSharpProjects2022\VisualBasicPictureViewerApp\VisualBasicPictureViewerApp\obj\Debug\VisualBasicPictureViewerApp.vbproj.CoreCompileInputs.cache 10 | H:\Visual Studio IDE versions\WorkspaceCSharpProjects2022\VisualBasicPictureViewerApp\VisualBasicPictureViewerApp\obj\Debug\VisualBasicPictureViewerApp.exe 11 | H:\Visual Studio IDE versions\WorkspaceCSharpProjects2022\VisualBasicPictureViewerApp\VisualBasicPictureViewerApp\obj\Debug\VisualBasicPictureViewerApp.xml 12 | H:\Visual Studio IDE versions\WorkspaceCSharpProjects2022\VisualBasicPictureViewerApp\VisualBasicPictureViewerApp\obj\Debug\VisualBasicPictureViewerApp.pdb 13 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/My Project/Resources.Designer.vb: -------------------------------------------------------------------------------- 1 | '------------------------------------------------------------------------------ 2 | ' 3 | ' This code was generated by a tool. 4 | ' Runtime Version:4.0.30319.42000 5 | ' 6 | ' Changes to this file may cause incorrect behavior and will be lost if 7 | ' the code is regenerated. 8 | ' 9 | '------------------------------------------------------------------------------ 10 | 11 | Option Strict On 12 | Option Explicit On 13 | 14 | 15 | Namespace My.Resources 16 | 17 | 'This class was auto-generated by the StronglyTypedResourceBuilder 18 | 'class via a tool like ResGen or Visual Studio. 19 | 'To add or remove a member, edit your .ResX file then rerun ResGen 20 | 'with the /str option, or rebuild your VS project. 21 | ''' 22 | ''' A strongly-typed resource class, for looking up localized strings, etc. 23 | ''' 24 | _ 28 | Friend Module Resources 29 | 30 | Private resourceMan As Global.System.Resources.ResourceManager 31 | 32 | Private resourceCulture As Global.System.Globalization.CultureInfo 33 | 34 | ''' 35 | ''' Returns the cached ResourceManager instance used by this class. 36 | ''' 37 | _ 38 | Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager 39 | Get 40 | If Object.ReferenceEquals(resourceMan, Nothing) Then 41 | Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("VisualBasicPictureViewerApp.Resources", GetType(Resources).Assembly) 42 | resourceMan = temp 43 | End If 44 | Return resourceMan 45 | End Get 46 | End Property 47 | 48 | ''' 49 | ''' Overrides the current thread's CurrentUICulture property for all 50 | ''' resource lookups using this strongly typed resource class. 51 | ''' 52 | _ 53 | Friend Property Culture() As Global.System.Globalization.CultureInfo 54 | Get 55 | Return resourceCulture 56 | End Get 57 | Set(ByVal value As Global.System.Globalization.CultureInfo) 58 | resourceCulture = value 59 | End Set 60 | End Property 61 | End Module 62 | End Namespace 63 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/My Project/Settings.Designer.vb: -------------------------------------------------------------------------------- 1 | '------------------------------------------------------------------------------ 2 | ' 3 | ' This code was generated by a tool. 4 | ' Runtime Version:4.0.30319.42000 5 | ' 6 | ' Changes to this file may cause incorrect behavior and will be lost if 7 | ' the code is regenerated. 8 | ' 9 | '------------------------------------------------------------------------------ 10 | 11 | Option Strict On 12 | Option Explicit On 13 | 14 | 15 | Namespace My 16 | 17 | _ 20 | Partial Friend NotInheritable Class MySettings 21 | Inherits Global.System.Configuration.ApplicationSettingsBase 22 | 23 | Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings) 24 | 25 | #Region "My.Settings Auto-Save Functionality" 26 | #If _MyType = "WindowsForms" Then 27 | Private Shared addedHandler As Boolean 28 | 29 | Private Shared addedHandlerLockObject As New Object 30 | 31 | _ 32 | Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) 33 | If My.Application.SaveMySettingsOnExit Then 34 | My.Settings.Save() 35 | End If 36 | End Sub 37 | #End If 38 | #End Region 39 | 40 | Public Shared ReadOnly Property [Default]() As MySettings 41 | Get 42 | 43 | #If _MyType = "WindowsForms" Then 44 | If Not addedHandler Then 45 | SyncLock addedHandlerLockObject 46 | If Not addedHandler Then 47 | AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings 48 | addedHandler = True 49 | End If 50 | End SyncLock 51 | End If 52 | #End If 53 | Return defaultInstance 54 | End Get 55 | End Property 56 | End Class 57 | End Namespace 58 | 59 | Namespace My 60 | 61 | _ 64 | Friend Module MySettingsProperty 65 | 66 | _ 67 | Friend ReadOnly Property Settings() As Global.VisualBasicPictureViewerApp.My.MySettings 68 | Get 69 | Return Global.VisualBasicPictureViewerApp.My.MySettings.Default 70 | End Get 71 | End Property 72 | End Module 73 | End Namespace 74 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/VisualBasicPictureViewerApp.vbproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {4C9A7879-150F-4B30-9212-8696B0CAB4C6} 8 | WinExe 9 | VisualBasicPictureViewerApp.My.MyApplication 10 | VisualBasicPictureViewerApp 11 | VisualBasicPictureViewerApp 12 | 512 13 | WindowsForms 14 | v4.8 15 | true 16 | true 17 | 18 | 19 | AnyCPU 20 | true 21 | full 22 | true 23 | true 24 | bin\Debug\ 25 | VisualBasicPictureViewerApp.xml 26 | 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 27 | 28 | 29 | AnyCPU 30 | pdbonly 31 | false 32 | true 33 | true 34 | bin\Release\ 35 | VisualBasicPictureViewerApp.xml 36 | 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 37 | 38 | 39 | On 40 | 41 | 42 | Binary 43 | 44 | 45 | Off 46 | 47 | 48 | On 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | Form 78 | 79 | 80 | Form1.vb 81 | Form 82 | 83 | 84 | 85 | True 86 | Application.myapp 87 | 88 | 89 | True 90 | True 91 | Resources.resx 92 | 93 | 94 | True 95 | Settings.settings 96 | True 97 | 98 | 99 | 100 | 101 | Form1.vb 102 | 103 | 104 | VbMyResourcesResXFileCodeGenerator 105 | Resources.Designer.vb 106 | My.Resources 107 | Designer 108 | 109 | 110 | 111 | 112 | MyApplicationCodeGenerator 113 | Application.Designer.vb 114 | 115 | 116 | SettingsSingleFileGenerator 117 | My 118 | Settings.Designer.vb 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/My Project/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/Form1.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 17, 17 122 | 123 | 124 | 159, 17 125 | 126 | -------------------------------------------------------------------------------- /VisualBasicPictureViewerApp/Form1.Designer.vb: -------------------------------------------------------------------------------- 1 | _ 2 | Partial Class Form1 3 | Inherits System.Windows.Forms.Form 4 | 5 | 'Form overrides dispose to clean up the component list. 6 | _ 7 | Protected Overrides Sub Dispose(ByVal disposing As Boolean) 8 | Try 9 | If disposing AndAlso components IsNot Nothing Then 10 | components.Dispose() 11 | End If 12 | Finally 13 | MyBase.Dispose(disposing) 14 | End Try 15 | End Sub 16 | 17 | 'Required by the Windows Form Designer 18 | Private components As System.ComponentModel.IContainer 19 | 20 | 'NOTE: The following procedure is required by the Windows Form Designer 21 | 'It can be modified using the Windows Form Designer. 22 | 'Do not modify it using the code editor. 23 | _ 24 | Private Sub InitializeComponent() 25 | Me.TableLayoutPanel1 = New System.Windows.Forms.TableLayoutPanel() 26 | Me.PictureBox1 = New System.Windows.Forms.PictureBox() 27 | Me.CheckBox1 = New System.Windows.Forms.CheckBox() 28 | Me.FlowLayoutPanel1 = New System.Windows.Forms.FlowLayoutPanel() 29 | Me.closeButton = New System.Windows.Forms.Button() 30 | Me.backgroundButton = New System.Windows.Forms.Button() 31 | Me.clearButton = New System.Windows.Forms.Button() 32 | Me.showButton = New System.Windows.Forms.Button() 33 | Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog() 34 | Me.ColorDialog1 = New System.Windows.Forms.ColorDialog() 35 | Me.TableLayoutPanel1.SuspendLayout() 36 | CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit() 37 | Me.FlowLayoutPanel1.SuspendLayout() 38 | Me.SuspendLayout() 39 | ' 40 | 'TableLayoutPanel1 41 | ' 42 | Me.TableLayoutPanel1.ColumnCount = 2 43 | Me.TableLayoutPanel1.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 15.0!)) 44 | Me.TableLayoutPanel1.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 85.0!)) 45 | Me.TableLayoutPanel1.Controls.Add(Me.PictureBox1, 0, 0) 46 | Me.TableLayoutPanel1.Controls.Add(Me.CheckBox1, 0, 1) 47 | Me.TableLayoutPanel1.Controls.Add(Me.FlowLayoutPanel1, 1, 1) 48 | Me.TableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill 49 | Me.TableLayoutPanel1.Location = New System.Drawing.Point(0, 0) 50 | Me.TableLayoutPanel1.Name = "TableLayoutPanel1" 51 | Me.TableLayoutPanel1.RowCount = 2 52 | Me.TableLayoutPanel1.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 90.0!)) 53 | Me.TableLayoutPanel1.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10.0!)) 54 | Me.TableLayoutPanel1.Size = New System.Drawing.Size(800, 450) 55 | Me.TableLayoutPanel1.TabIndex = 0 56 | ' 57 | 'PictureBox1 58 | ' 59 | Me.TableLayoutPanel1.SetColumnSpan(Me.PictureBox1, 2) 60 | Me.PictureBox1.Dock = System.Windows.Forms.DockStyle.Fill 61 | Me.PictureBox1.Location = New System.Drawing.Point(3, 3) 62 | Me.PictureBox1.Name = "PictureBox1" 63 | Me.PictureBox1.Size = New System.Drawing.Size(794, 399) 64 | Me.PictureBox1.TabIndex = 0 65 | Me.PictureBox1.TabStop = False 66 | ' 67 | 'CheckBox1 68 | ' 69 | Me.CheckBox1.AutoSize = True 70 | Me.CheckBox1.Location = New System.Drawing.Point(3, 408) 71 | Me.CheckBox1.Name = "CheckBox1" 72 | Me.CheckBox1.Size = New System.Drawing.Size(77, 17) 73 | Me.CheckBox1.TabIndex = 1 74 | Me.CheckBox1.Text = "STREACH" 75 | Me.CheckBox1.UseVisualStyleBackColor = True 76 | ' 77 | 'FlowLayoutPanel1 78 | ' 79 | Me.FlowLayoutPanel1.Controls.Add(Me.closeButton) 80 | Me.FlowLayoutPanel1.Controls.Add(Me.backgroundButton) 81 | Me.FlowLayoutPanel1.Controls.Add(Me.clearButton) 82 | Me.FlowLayoutPanel1.Controls.Add(Me.showButton) 83 | Me.FlowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill 84 | Me.FlowLayoutPanel1.Location = New System.Drawing.Point(123, 408) 85 | Me.FlowLayoutPanel1.Name = "FlowLayoutPanel1" 86 | Me.FlowLayoutPanel1.Size = New System.Drawing.Size(674, 39) 87 | Me.FlowLayoutPanel1.TabIndex = 2 88 | ' 89 | 'closeButton 90 | ' 91 | Me.closeButton.Location = New System.Drawing.Point(3, 3) 92 | Me.closeButton.Name = "closeButton" 93 | Me.closeButton.Size = New System.Drawing.Size(75, 23) 94 | Me.closeButton.TabIndex = 0 95 | Me.closeButton.Text = "Close" 96 | Me.closeButton.UseVisualStyleBackColor = True 97 | ' 98 | 'backgroundButton 99 | ' 100 | Me.backgroundButton.Location = New System.Drawing.Point(84, 3) 101 | Me.backgroundButton.Name = "backgroundButton" 102 | Me.backgroundButton.Size = New System.Drawing.Size(156, 23) 103 | Me.backgroundButton.TabIndex = 1 104 | Me.backgroundButton.Text = "Set the background color" 105 | Me.backgroundButton.UseVisualStyleBackColor = True 106 | ' 107 | 'clearButton 108 | ' 109 | Me.clearButton.Location = New System.Drawing.Point(246, 3) 110 | Me.clearButton.Name = "clearButton" 111 | Me.clearButton.Size = New System.Drawing.Size(113, 23) 112 | Me.clearButton.TabIndex = 2 113 | Me.clearButton.Text = "Clear the picture" 114 | Me.clearButton.UseVisualStyleBackColor = True 115 | ' 116 | 'showButton 117 | ' 118 | Me.showButton.Location = New System.Drawing.Point(365, 3) 119 | Me.showButton.Name = "showButton" 120 | Me.showButton.Size = New System.Drawing.Size(105, 23) 121 | Me.showButton.TabIndex = 3 122 | Me.showButton.Text = "Show the picture" 123 | Me.showButton.UseVisualStyleBackColor = True 124 | ' 125 | 'OpenFileDialog1 126 | ' 127 | Me.OpenFileDialog1.FileName = "OpenFileDialog1" 128 | Me.OpenFileDialog1.Filter = "JPEG Files (*.jpg)|*.jpg|PNG Files (*.png)|*.png|BMP Files (*.bmp)|*.bmp|All file" & 129 | "s (*.*)|*.*" 130 | Me.OpenFileDialog1.Title = "Select a picture file" 131 | ' 132 | 'Form1 133 | ' 134 | Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) 135 | Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font 136 | Me.ClientSize = New System.Drawing.Size(800, 450) 137 | Me.Controls.Add(Me.TableLayoutPanel1) 138 | Me.Name = "Form1" 139 | Me.Text = "Picture Viewer Application" 140 | Me.TableLayoutPanel1.ResumeLayout(False) 141 | Me.TableLayoutPanel1.PerformLayout() 142 | CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit() 143 | Me.FlowLayoutPanel1.ResumeLayout(False) 144 | Me.ResumeLayout(False) 145 | 146 | End Sub 147 | 148 | Friend WithEvents TableLayoutPanel1 As TableLayoutPanel 149 | Friend WithEvents PictureBox1 As PictureBox 150 | Friend WithEvents CheckBox1 As CheckBox 151 | Friend WithEvents FlowLayoutPanel1 As FlowLayoutPanel 152 | Friend WithEvents closeButton As Button 153 | Friend WithEvents backgroundButton As Button 154 | Friend WithEvents clearButton As Button 155 | Friend WithEvents showButton As Button 156 | Friend WithEvents OpenFileDialog1 As OpenFileDialog 157 | Friend WithEvents ColorDialog1 As ColorDialog 158 | End Class 159 | --------------------------------------------------------------------------------