• 0

[vb.net] array of forms


Question

9 answers to this question

Recommended Posts

  • 0

this is the code I use:

           
Public noteform As ArrayList

then I declare in another function using "number" which is an integer variable

noteform.Add(New formNote1)
noteform(number) = New formNote1
            

  • 0

ok, i have created a form in the designer called form1. Now in order to create an array of that form I first must declare the array:

Public noteform As ArrayList

Now that the array is declared, I can start to add forms to it. To add the new form, I need 2 lines of code:

noteform.Add(New formNote1)

noteform(number) = New formNote1

Now "number" is an integer variable I have set up. You can feed an "i" in there as you put in your original code.

  • 0

i still can't work with the forms on the array :blush:

btw, i have a web control and when i open it in a normal window it works fine, but when i open it in a mdi form inside the main form it just reads the web page title and stops! what's the problem with this?? i'm clueless...

and i also need to know how to send commands from the main form to the active mdi form, like mdiform.webcontrol1.navigate(me.combobox1.text)

thnx :ninja:

  • 0
  Cool4 said:
believe me.. i've tried that... but when i do 'noteform(i).' it just displays 'gettype'

btw, formNote1 is the name of the form that we are creating, isn't it?

1) even though you only see "gettype" using any of the commands like "show" will work

2) formNote1 is a form I created and is visible in my project file listing. I am simply copying it multiple times.

  • 0

ok.. i got it to work finaly... thans alot for your patience... ;)

but i still have that problem when opening web pages in mdi forms... the web control just freeze, i tried to find some nice free webcontrol to see if i could solve that problem... but nothing! :( pls i really need some help

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.