Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » .NET Database & Reporting

Post new topic   Reply to topic
Inherting forms and stack overload
View previous topic :: View next topic  
Author Message
madman
Newbie


Joined: 27 Oct 2005
Posts: 1

PostPosted: Oct 27th, 2005 07:16 AM    Post subject: Inherting forms and stack overload Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » .NET Database & Reporting All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic