In an MDI form I need to have a running Document number... i.e. Document 1... Document 2
Posted on 2005-05-11
I have a MDI parent form that has a "new" menu item that opens a new child form.
For instance if i keep clicking new it will open up multiple child forms.
I need each form to have its unique number
Here is what i have so far:
Dim frmCurrentChild As New frmChild
Dim intNum As Integer
Dim intNewNum As Integer
frmCurrentChild.Text = "Document " & intNum
intNum = intNewNum + 1
frmCurrentChild.MdiParent = Me
This code keeps giving me a zero for the document number
Any help would be appreciated.