CustDisplay Form (parent form) has the following declaration:
Public Class CustDisplayForm
Inherits System.Windows. Forms.Form
'Dim addCustsForm As New CustAddForm
Dim editCustForm As New EditCustomerFor m
'Varibles for the database location and how to access it
Const providerStr = "Provider='Micr osoft.JET.OLEDB .4.0';"
Const dataSourceStrin g = "Data Source='C:\Docu ments and
Settings\jfitzp atrick\My Documents\Teste r.mdb'"
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeCompo nent()
'Add any initialization after the InitializeCompo nent() call
End Sub
EditCustForm has the following declartion:
ublic Class EditCustomerFor m
Inherits EditCustomersPr oject.CustDispl ayForm
#Region " Windows Form Designer generated code "
' Public Sub New()
'MyBase.New()
'This call is required by the Windows Form Designer.
' InitializeCompo nent()
'Add any initialization after the InitializeCompo nent() call
' End Sub
The problem is that when I run the programme which has custDisplayForm
laoding as the main form, it gets stuck into a never ending loop. The
loop consits of the follwoing sub rountines being called over and over
again
Cust
EditCustomersPr oject.CustDispl ayForm.New()
EditCustomersPr oject.EditCusto merForm.EditCus tomerForm()
The inhertiatance was created by me ad new a new inherited form using
the wizards.
--
Madman
------------------------------------------------------------------------
Madman's Profile: http://www.hightechtalks.com/m146
View this thread: http://www.hightechtalks.com/t2271131
Comment