This is my set up,
I have a main window form which is a MDI parent form. Within that form via a menu item click I'm opening windows as a MDI window with the main window being the MDI parent.
This window will have key customer information, for new customers I will have a add box which will open a new form as a ShowDialog(). when I click save and close I want to save the information in a DB and populate the first MDI window (CustForm)
Given that I might 5 CustForm forms open, how can I populate it? CustForm.CustName.text = textbox1.text will not work?
Can I return the customerID from the database and retrieve the information when the dialogbox is closed? if so how can I return the ID number? (I know how to get the number and insert into a database etc).
Or, Is there a better way of doing this?
I have a main window form which is a MDI parent form. Within that form via a menu item click I'm opening windows as a MDI window with the main window being the MDI parent.
vb.net Code:
Dim CustForm As New CustomerForm CustForm .MdiParent = Me CustForm .Show()
This window will have key customer information, for new customers I will have a add box which will open a new form as a ShowDialog(). when I click save and close I want to save the information in a DB and populate the first MDI window (CustForm)
Given that I might 5 CustForm forms open, how can I populate it? CustForm.CustName.text = textbox1.text will not work?
Can I return the customerID from the database and retrieve the information when the dialogbox is closed? if so how can I return the ID number? (I know how to get the number and insert into a database etc).
Or, Is there a better way of doing this?