Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Protected Overrides Sub SetVisibleCore(ByVal value As Boolean)
- If Not Me.IsHandleCreated Then
- Me.CreateHandle()
- value = False
- End If
- MyBase.SetVisibleCore(value)
- If (Environment.GetCommandLineArgs.Length > 1) Then
- Dim s As String = Environment.GetCommandLineArgs(1)
- Using sr As New StreamReader(s)
- While Not sr.EndOfStream
- Dim item As New ListViewItem
- item.SubItems.Add(sr.ReadLine())
- ListView3.Items.Add(item)
- End While
- End Using
- For I = 0 To ListView3.Items.Count - 1
- ListView3.Items(I).Text = CStr(I)
- Next
- End If
- With ListView3.Items.Add(ListView3.Items.Count)
- .Subitems.Add(sr.ReadLine())
- End With
- Protected Overrides Sub SetVisibleCore(ByVal value As Boolean)
- Static blnExecuted As Boolean
- If Not Me.IsHandleCreated Then
- Me.CreateHandle()
- value = False
- End If
- MyBase.SetVisibleCore(value)
- If (Environment.GetCommandLineArgs.Length > 1) Then
- Dim s As String = Environment.GetCommandLineArgs(1)
- If blnExecuted = False Then
- blnExecuted = True
- Using sr As New StreamReader(s)
- While Not sr.EndOfStream
- Dim item As New ListViewItem
- item.SubItems.Add(sr.ReadLine())
- ListView3.Items.Add(item)
- End While
- End Using
- For I = 0 To ListView3.Items.Count - 1
- ListView3.Items(I).Text = CStr(I)
- Next
- End If
- Else
- openscriptfunc()
- End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement