Initial
This commit is contained in:
134
EDOKA/Backup/Utils/frmProgress.vb
Normal file
134
EDOKA/Backup/Utils/frmProgress.vb
Normal file
@@ -0,0 +1,134 @@
|
||||
Public Class frmProgress
|
||||
Inherits System.Windows.Forms.Form
|
||||
|
||||
#Region " Vom Windows Form Designer generierter Code "
|
||||
|
||||
Public Sub New()
|
||||
MyBase.New()
|
||||
|
||||
' Dieser Aufruf ist für den Windows Form-Designer erforderlich.
|
||||
InitializeComponent()
|
||||
|
||||
' Initialisierungen nach dem Aufruf InitializeComponent() hinzufügen
|
||||
|
||||
End Sub
|
||||
|
||||
' Die Form überschreibt den Löschvorgang der Basisklasse, um Komponenten zu bereinigen.
|
||||
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
If disposing Then
|
||||
If Not (components Is Nothing) Then
|
||||
components.Dispose()
|
||||
End If
|
||||
End If
|
||||
MyBase.Dispose(disposing)
|
||||
End Sub
|
||||
|
||||
' Für Windows Form-Designer erforderlich
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'HINWEIS: Die folgende Prozedur ist für den Windows Form-Designer erforderlich
|
||||
'Sie kann mit dem Windows Form-Designer modifiziert werden.
|
||||
'Verwenden Sie nicht den Code-Editor zur Bearbeitung.
|
||||
Friend WithEvents Info As System.Windows.Forms.Label
|
||||
Friend WithEvents Bar1 As UtilityLibrary.WinControls.ProgressBarEx
|
||||
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
|
||||
Me.Info = New System.Windows.Forms.Label()
|
||||
Me.Bar1 = New UtilityLibrary.WinControls.ProgressBarEx()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'Info
|
||||
'
|
||||
Me.Info.Location = New System.Drawing.Point(8, 16)
|
||||
Me.Info.Name = "Info"
|
||||
Me.Info.Size = New System.Drawing.Size(392, 23)
|
||||
Me.Info.TabIndex = 1
|
||||
Me.Info.Text = "Label1"
|
||||
'
|
||||
'Bar1
|
||||
'
|
||||
Me.Bar1.BackgroundBitmap = Nothing
|
||||
Me.Bar1.BackgroundColor = System.Drawing.Color.FromArgb(CType(220, Byte), CType(217, Byte), CType(211, Byte))
|
||||
Me.Bar1.Border3D = System.Windows.Forms.Border3DStyle.Flat
|
||||
Me.Bar1.BorderColor = System.Drawing.SystemColors.Highlight
|
||||
Me.Bar1.EnableBorder3D = True
|
||||
Me.Bar1.ForegroundBitmap = Nothing
|
||||
Me.Bar1.ForegroundColor = System.Drawing.Color.Blue
|
||||
Me.Bar1.GradientEndColor = System.Drawing.Color.Navy
|
||||
Me.Bar1.GradientMiddleColor = System.Drawing.Color.Blue
|
||||
Me.Bar1.GradientStartColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(128, Byte), CType(255, Byte))
|
||||
Me.Bar1.Location = New System.Drawing.Point(8, 40)
|
||||
Me.Bar1.Maximum = 100
|
||||
Me.Bar1.Minimum = 0
|
||||
Me.Bar1.Name = "Bar1"
|
||||
Me.Bar1.ProgressTextColor = System.Drawing.Color.Empty
|
||||
Me.Bar1.ProgressTextHiglightColor = System.Drawing.Color.Empty
|
||||
Me.Bar1.ShowProgressText = True
|
||||
Me.Bar1.Size = New System.Drawing.Size(392, 32)
|
||||
Me.Bar1.Smooth = True
|
||||
Me.Bar1.Step = 10
|
||||
Me.Bar1.TabIndex = 2
|
||||
Me.Bar1.Text = "ProgressBarEx1"
|
||||
Me.Bar1.Value = 0
|
||||
'
|
||||
'frmProgress
|
||||
'
|
||||
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
|
||||
Me.ClientSize = New System.Drawing.Size(408, 87)
|
||||
Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Bar1, Me.Info})
|
||||
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
|
||||
Me.MaximizeBox = False
|
||||
Me.MinimizeBox = False
|
||||
Me.Name = "frmProgress"
|
||||
Me.ShowInTaskbar = False
|
||||
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||
Me.Text = "Fortschrittsanzeige"
|
||||
Me.ResumeLayout(False)
|
||||
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
|
||||
|
||||
|
||||
Dim m_CloseIsInvisible As Boolean = False
|
||||
Property CloseIsInvisible() As Boolean
|
||||
Get
|
||||
Return m_CloseIsInvisible
|
||||
End Get
|
||||
Set(ByVal Value As Boolean)
|
||||
m_CloseIsInvisible = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'SHU 20041119
|
||||
'Wenn der Parameter True ist, wird beim Close-Ereignis das Fenster nicht geschlossen,
|
||||
'sonder nur invisible gesetzt
|
||||
Public Sub New(ByVal CloseIsInvisible As Boolean)
|
||||
MyBase.New()
|
||||
|
||||
' Dieser Aufruf ist für den Windows Form-Designer erforderlich.
|
||||
InitializeComponent()
|
||||
|
||||
Me.CloseIsInvisible = CloseIsInvisible
|
||||
' Initialisierungen nach dem Aufruf InitializeComponent() hinzufügen
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub frmProgress_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub Info_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Info.TextChanged
|
||||
Me.Refresh()
|
||||
System.Windows.Forms.Application.DoEvents()
|
||||
End Sub
|
||||
|
||||
Private Sub frmProgress_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
|
||||
If Me.CloseIsInvisible = True Then
|
||||
Me.Visible = False
|
||||
e.Cancel = True
|
||||
End If
|
||||
End Sub
|
||||
End Class
|
||||
Reference in New Issue
Block a user