Forms & and exposed subs

  • Thread starter Thread starter shawrie
  • Start date Start date
S

shawrie

Hi everyone i have a problem i could do with some help on.

if a form has the new sub overidden e.g

Public Sub New(ByVal iGrp As Integer, ByVal iSubGrp As Integer, ByVal
sGrpDesc As String, ByVal sSubGrpDesc As String)
' This call is required by the Windows Form Designer.
InitializeComponent()

' Add any initialization after the InitializeComponent() call.
iGroupCode = iGrp
iSubGroupCode = iSubGrp
sGroupDesc = sGrpDesc
sSubGroupDesc = sSubGrpDesc
End Sub

when accessing that form from another form i cant see any controls or
Subs and functions in the list. If i take the overide out i can. Can
anyone explain

Basically i want access to the datagrid that is on form1 from form2

Hope that makes sense and someone can help
Shawrie
 
Hi everyone i have a problem i could do with some help on.

if a form has the new sub overidden e.g

Public Sub New(ByVal iGrp As Integer, ByVal iSubGrp As Integer, ByVal
sGrpDesc As String, ByVal sSubGrpDesc As String)
' This call is required by the Windows Form Designer.
InitializeComponent()

' Add any initialization after the InitializeComponent() call.
iGroupCode = iGrp
iSubGroupCode = iSubGrp
sGroupDesc = sGrpDesc
sSubGroupDesc = sSubGrpDesc
End Sub

when accessing that form from another form i cant see any controls or
Subs and functions in the list. If i take the overide out i can. Can
anyone explain

Basically i want access to the datagrid that is on form1 from form2

Hope that makes sense and someone can help
Shawrie

do you need an 'inherited' call in there as well?
 
Back
Top