Hi. I am have developed a program that has a main form, Form1. Then from Form1, the user is allowed to click and access a second form know as Form 2 which is also known as ideas input form. If the user has ideas within ideas, then he can call again the Form2 and provide more ideas. However,
when Form2 is loaded the first time, the user is allowed key in several ideas i.e. let say ideas 1, ideas 2, ideas 3 and so on. Then he felt that he has other ideas that is related to let say ideas 2 and he launched the same form, Form2 but he is keying in ideas 2.1, ideas 2.2, etc. (ideas related to ideas2). This can go on .. and on ..
Thanks Hack but your codes produce error. Please advise.
How did you implement it ??
personally i'd use a array of forms to handle this..
Code:
Public frm() As Form
Temp = ubound(frm)+1
Redim frm(Temp)
Set frm(Temp) = New Form2
frm(Temp).Show
frm(Temp).Index = Temp ' Add this as a Public Variable to form 2
For a full Working example havce a look at the IPchat App .. I use this method to open multiple Chat Forms (same base form) and use the index to keep track for closing and unloading...
Hi GremlinSA. Thank you very much for your code snippet. I have tried out it into trial and it still has error. I have compiled the codes and I hope you provide some pointers. Assumming I want to reuse form2 many times simultaneously and retain its value in the controls. As for your working example, error message saying "ntsvc.ocx is missing". I could not run your file. Your code looks very complicated .. need more time to decipher.
Last edited by kwng; April 25th, 2007 at 02:18 PM.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.