home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 72 / IOPROG_72.ISO / soft / c++ / NCTDiscWriter2.exe / {app} / MS VB.Net Samples / TestVBNETAudioCDRipper / Form2.vb < prev    next >
Encoding:
Text File  |  2003-04-02  |  3.2 KB  |  97 lines

  1. Public Class Form2
  2.     Inherits System.Windows.Forms.Form
  3.     Public FileName As String
  4.     Public form As Form1
  5.  
  6. #Region " Windows Form Designer generated code "
  7.  
  8.     Public Sub New()
  9.         MyBase.New()
  10.  
  11.         'This call is required by the Windows Form Designer.
  12.         InitializeComponent()
  13.  
  14.         'Add any initialization after the InitializeComponent() call
  15.  
  16.     End Sub
  17.  
  18.     'Form overrides dispose to clean up the component list.
  19.     Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
  20.         If disposing Then
  21.             If Not (components Is Nothing) Then
  22.                 components.Dispose()
  23.             End If
  24.         End If
  25.         MyBase.Dispose(disposing)
  26.     End Sub
  27.  
  28.     'Required by the Windows Form Designer
  29.     Private components As System.ComponentModel.IContainer
  30.  
  31.     'NOTE: The following procedure is required by the Windows Form Designer
  32.     'It can be modified using the Windows Form Designer.  
  33.     'Do not modify it using the code editor.
  34.     Friend WithEvents Button1 As System.Windows.Forms.Button
  35.     Friend WithEvents Label1 As System.Windows.Forms.Label
  36.     Friend WithEvents pb1 As System.Windows.Forms.ProgressBar
  37.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  38.         Me.pb1 = New System.Windows.Forms.ProgressBar()
  39.         Me.Button1 = New System.Windows.Forms.Button()
  40.         Me.Label1 = New System.Windows.Forms.Label()
  41.         Me.SuspendLayout()
  42.         '
  43.         'pb1
  44.         '
  45.         Me.pb1.Location = New System.Drawing.Point(5, 38)
  46.         Me.pb1.Name = "pb1"
  47.         Me.pb1.Size = New System.Drawing.Size(551, 10)
  48.         Me.pb1.TabIndex = 0
  49.         '
  50.         'Button1
  51.         '
  52.         Me.Button1.Location = New System.Drawing.Point(469, 7)
  53.         Me.Button1.Name = "Button1"
  54.         Me.Button1.Size = New System.Drawing.Size(88, 24)
  55.         Me.Button1.TabIndex = 2
  56.         Me.Button1.Text = "Cancel"
  57.         '
  58.         'Label1
  59.         '
  60.         Me.Label1.Location = New System.Drawing.Point(6, 8)
  61.         Me.Label1.Name = "Label1"
  62.         Me.Label1.Size = New System.Drawing.Size(450, 16)
  63.         Me.Label1.TabIndex = 3
  64.         '
  65.         'Form2
  66.         '
  67.         Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
  68.         Me.ClientSize = New System.Drawing.Size(563, 54)
  69.         Me.ControlBox = False
  70.         Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Label1, Me.Button1, Me.pb1})
  71.         Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
  72.         Me.MaximizeBox = False
  73.         Me.MinimizeBox = False
  74.         Me.Name = "Form2"
  75.         Me.ShowInTaskbar = False
  76.         Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
  77.         Me.Text = "Rip/Converting Progress"
  78.         Me.TopMost = True
  79.         Me.ResumeLayout(False)
  80.  
  81.     End Sub
  82.  
  83. #End Region
  84.  
  85.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  86.         form.StopRip = True
  87.     End Sub
  88.     Public Sub DrawTextMy(ByVal text As String)
  89.         If (text.Length() < 1) Then text = FileName
  90.         'text = MinimizeName(text,Canvas,pb1->Width)
  91.         Label1.Text = text
  92.         Label1.Refresh()
  93.     End Sub
  94.  
  95.   
  96. End Class
  97.