Click here to Skip to main content
15,886,799 members
Articles / Programming Languages / C#

Amazon S3 Sync

Rate me:
Please Sign up or sign in to vote.
4.92/5 (6 votes)
1 Dec 2010Apache5 min read 47.9K   1.6K   23  
Synchronize files from your computer to Amazon S3.
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class FormMain
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.Label1 = New System.Windows.Forms.Label
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.Label3 = New System.Windows.Forms.Label
        Me.Label2 = New System.Windows.Forms.Label
        Me.TextBoxAWSSecretAccessKey = New System.Windows.Forms.TextBox
        Me.TextBoxAWSAccessKeyId = New System.Windows.Forms.TextBox
        Me.LinkLabelGetAmazonAccount = New System.Windows.Forms.LinkLabel
        Me.ButtonDownloadEstimateForm = New System.Windows.Forms.Button
        Me.ButtonUploadEstimateForm = New System.Windows.Forms.Button
        Me.ButtonDownloadForm = New System.Windows.Forms.Button
        Me.ButtonUploadForm = New System.Windows.Forms.Button
        Me.GroupBox1.SuspendLayout()
        Me.SuspendLayout()
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(12, 9)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(550, 23)
        Me.Label1.TabIndex = 0
        Me.Label1.Text = "This project demonstrates uploading a file to Amazon S3 and downloading a file fr" & _
            "om Amazon S3."
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.Add(Me.Label3)
        Me.GroupBox1.Controls.Add(Me.Label2)
        Me.GroupBox1.Controls.Add(Me.TextBoxAWSSecretAccessKey)
        Me.GroupBox1.Controls.Add(Me.TextBoxAWSAccessKeyId)
        Me.GroupBox1.Controls.Add(Me.LinkLabelGetAmazonAccount)
        Me.GroupBox1.Location = New System.Drawing.Point(12, 35)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(557, 81)
        Me.GroupBox1.TabIndex = 1
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "Global Settings (Enter your values below)"
        '
        'Label3
        '
        Me.Label3.AutoSize = True
        Me.Label3.Location = New System.Drawing.Point(6, 54)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(157, 13)
        Me.Label3.TabIndex = 38
        Me.Label3.Text = "Amazon AWSSecretAccessKey"
        '
        'Label2
        '
        Me.Label2.AutoSize = True
        Me.Label2.Location = New System.Drawing.Point(6, 28)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(135, 13)
        Me.Label2.TabIndex = 37
        Me.Label2.Text = "Amazon AWSAccessKeyId"
        '
        'TextBoxAWSSecretAccessKey
        '
        Me.TextBoxAWSSecretAccessKey.Location = New System.Drawing.Point(169, 51)
        Me.TextBoxAWSSecretAccessKey.Name = "TextBoxAWSSecretAccessKey"
        Me.TextBoxAWSSecretAccessKey.Size = New System.Drawing.Size(287, 20)
        Me.TextBoxAWSSecretAccessKey.TabIndex = 35
        '
        'TextBoxAWSAccessKeyId
        '
        Me.TextBoxAWSAccessKeyId.Location = New System.Drawing.Point(169, 25)
        Me.TextBoxAWSAccessKeyId.Name = "TextBoxAWSAccessKeyId"
        Me.TextBoxAWSAccessKeyId.Size = New System.Drawing.Size(287, 20)
        Me.TextBoxAWSAccessKeyId.TabIndex = 33
        '
        'LinkLabelGetAmazonAccount
        '
        Me.LinkLabelGetAmazonAccount.AutoSize = True
        Me.LinkLabelGetAmazonAccount.Location = New System.Drawing.Point(463, 28)
        Me.LinkLabelGetAmazonAccount.Name = "LinkLabelGetAmazonAccount"
        Me.LinkLabelGetAmazonAccount.Size = New System.Drawing.Size(81, 13)
        Me.LinkLabelGetAmazonAccount.TabIndex = 34
        Me.LinkLabelGetAmazonAccount.TabStop = True
        Me.LinkLabelGetAmazonAccount.Text = "Get an account"
        '
        'ButtonDownloadEstimateForm
        '
        Me.ButtonDownloadEstimateForm.Location = New System.Drawing.Point(300, 158)
        Me.ButtonDownloadEstimateForm.Name = "ButtonDownloadEstimateForm"
        Me.ButtonDownloadEstimateForm.Size = New System.Drawing.Size(136, 23)
        Me.ButtonDownloadEstimateForm.TabIndex = 38
        Me.ButtonDownloadEstimateForm.Text = "Download With Estimate"
        Me.ButtonDownloadEstimateForm.UseVisualStyleBackColor = True
        '
        'ButtonUploadEstimateForm
        '
        Me.ButtonUploadEstimateForm.Location = New System.Drawing.Point(143, 156)
        Me.ButtonUploadEstimateForm.Name = "ButtonUploadEstimateForm"
        Me.ButtonUploadEstimateForm.Size = New System.Drawing.Size(136, 25)
        Me.ButtonUploadEstimateForm.TabIndex = 37
        Me.ButtonUploadEstimateForm.Text = "Upload With Estimate"
        Me.ButtonUploadEstimateForm.UseVisualStyleBackColor = True
        '
        'ButtonDownloadForm
        '
        Me.ButtonDownloadForm.Location = New System.Drawing.Point(300, 127)
        Me.ButtonDownloadForm.Name = "ButtonDownloadForm"
        Me.ButtonDownloadForm.Size = New System.Drawing.Size(136, 23)
        Me.ButtonDownloadForm.TabIndex = 36
        Me.ButtonDownloadForm.Text = "Download a File"
        Me.ButtonDownloadForm.UseVisualStyleBackColor = True
        '
        'ButtonUploadForm
        '
        Me.ButtonUploadForm.Location = New System.Drawing.Point(143, 125)
        Me.ButtonUploadForm.Name = "ButtonUploadForm"
        Me.ButtonUploadForm.Size = New System.Drawing.Size(136, 25)
        Me.ButtonUploadForm.TabIndex = 35
        Me.ButtonUploadForm.Text = "Upload a File"
        Me.ButtonUploadForm.UseVisualStyleBackColor = True
        '
        'FormMain
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(579, 190)
        Me.Controls.Add(Me.ButtonDownloadEstimateForm)
        Me.Controls.Add(Me.ButtonUploadEstimateForm)
        Me.Controls.Add(Me.ButtonDownloadForm)
        Me.Controls.Add(Me.ButtonUploadForm)
        Me.Controls.Add(Me.GroupBox1)
        Me.Controls.Add(Me.Label1)
        Me.Name = "FormMain"
        Me.Text = "SprightlySoft S3 Upload Download Examples for VB.NET"
        Me.GroupBox1.ResumeLayout(False)
        Me.GroupBox1.PerformLayout()
        Me.ResumeLayout(False)

    End Sub
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents TextBoxAWSSecretAccessKey As System.Windows.Forms.TextBox
    Friend WithEvents TextBoxAWSAccessKeyId As System.Windows.Forms.TextBox
    Friend WithEvents LinkLabelGetAmazonAccount As System.Windows.Forms.LinkLabel
    Friend WithEvents ButtonDownloadEstimateForm As System.Windows.Forms.Button
    Friend WithEvents ButtonUploadEstimateForm As System.Windows.Forms.Button
    Friend WithEvents ButtonDownloadForm As System.Windows.Forms.Button
    Friend WithEvents ButtonUploadForm As System.Windows.Forms.Button

End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0


Written By
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions