Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27350

Return data

$
0
0
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.

vb.net Code:
  1. Dim CustForm As New CustomerForm
  2. CustForm .MdiParent = Me
  3. 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?

Viewing all articles
Browse latest Browse all 27350

Trending Articles