madman Newbie
Joined: 27 Oct 2005 Posts: 1
|
Posted: Oct 27th, 2005 07:16 AM Post subject: Inherting forms and stack overload |
|
|
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
EditCustomersProject.CustDisplayForm.New()
EditCustomersProject.EditCustomerForm.EditCustomerForm()
The inhertiatance was created by me ad new a new inherited form using the wizards.
****************************************************************
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 EditCustomerForm
'Varibles for the database location and how to access it
Const providerStr = "Provider='Microsoft.JET.OLEDB.4.0';"
Const dataSourceString = "Data Source='C:\Documents and Settings\jfitzpatrick\My Documents\Tester.mdb'"
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
EditCustForm has the following declartion:
ublic Class EditCustomerForm
Inherits EditCustomersProject.CustDisplayForm
#Region " Windows Form Designer generated code "
' Public Sub New()
'MyBase.New()
'This call is required by the Windows Form Designer.
' InitializeComponent()
'Add any initialization after the InitializeComponent() call
' End Sub _________________ Madman |
|