Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with MDIchild
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00396987
Message ID:
00397375
Views:
18
am using Service Pack 4

I have found the problem to happen only when I load new unit forms. Here is the sample code I used to test it.
Dim UnitForm() as new frmUnit
Dim UnitNumber as long

Private Sub MDIForm_Click()
' Program unloaded fine before I clicked to make a new unit form
' It will give an illegal operation now

' Add a new form to our form array
UnitNumber = UnitNumber + 1
ReDim Preserve UnitForms(0UnitNumber) As New frmUnit

UnitForms(UnitNumber).Show
End Sub
Kenneth Gilbert Jr, MCP
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform