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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top