Advertisement
Guest User

Untitled

a guest
Jan 20th, 2015
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.30 KB | None | 0 0
  1. <ComVisible(True)>
  2. Public Class CurrentFormBookingObj
  3.  
  4.     Public InsertionSets As ArrayList
  5.  
  6.     Public Sub New()
  7.     InsertionSets = new InsertionSetCol()
  8.         'InsertionSets = New ArrayList()
  9.         InsertionSets.Add(New InsertionSet())
  10.     End Sub
  11.  
  12. End Class
  13.  
  14.  
  15. <ComVisible(True)>
  16. Public Class InsertionSetCol
  17.     Inherits CollectionBase
  18.  
  19.     Public Sub Add(ByVal obj As InsertionSet)
  20.         List.Add(obj)
  21.     End Sub
  22.  
  23.     Public Shadows ReadOnly Property Count() As Integer
  24.         Get
  25.             Return MyBase.Count
  26.         End Get
  27.     End Property
  28.  
  29.     Default Public ReadOnly Property Item(ByVal index As Integer) As InsertionSet
  30.         Get
  31.             Return CType(List.Item(index - 1), InsertionSet)
  32.         End Get
  33.     End Property
  34.  
  35. End Class
  36.  
  37.  
  38. <ComVisible(True)>
  39. Public Class InsertionSet
  40.    
  41.     Public handled As Boolean = False
  42.  
  43. End Class
  44.  
  45.  
  46. <PermissionSet(SecurityAction.Demand, Name:="FullTrust")> _
  47. <System.Runtime.InteropServices.ComVisibleAttribute(True)> _
  48. Public Class Form2
  49.  
  50.     Public form As CurrentFormBookingObj = New CurrentFormBookingObj()
  51.  
  52.     Private Sub Form2Loaded(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
  53.         WebBrowser1.ObjectForScripting = Me
  54.         WebBrowser1.ScriptErrorsSuppressed = True
  55.     End Sub
  56. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement