Link to home
Start Free TrialLog in
Avatar of oldholburn
oldholburn

asked on

Toolbar/MdiChild

i am wrting a small prog. that uses a Mdiform with one childform(ie. Form1.the form is set as mdidhild=true).
I can make an array ( a Set No. of forms to add )for the ChildForms and
assign then toolbar buttons so when i click a button the right window shows.
The main point is how can i add a ChildForm as and when i need and still assign it to a Toolbar Button.
 I Have tried but all that happens is the last ChildForm shows.
  any help is much appreciated
I'll offer 50 points but if you feel it needs more and i agree i will oblige
Avatar of epretti
epretti

When you redim your Array you use

Redim [Array_Name] ([New_Value)

Because if you do so it's wrong, because in these way you loose your previous data. Try this:

Redim PRESERVE [Array_Name]([New_Value])
When you redim your Array you use

Redim [Array_Name] ([New_Value)

Because if you do so it's wrong, because in these way you loose your previous data. Try this:

Redim PRESERVE [Array_Name]([New_Value])
ASKER CERTIFIED SOLUTION
Avatar of wsh2
wsh2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial