Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21100

Working with multiple copies of a form?

$
0
0
I am making a notes app. There is a form, which is the parent, the example, the form that all the new ones are going to be a copy of, and has a textbox in it. It's called frmExample.
I use: dim newNt as new frmExample , to create a new copy of frmExample.
frmExample has a command button(meaning that all the copies will have a command button too) that launches a new form called frmEdit.
In frmEdit, there is a command button. I want that when the user clicks the command button in frmEdit, it will modify the value of the textbox of the form that the first command button has been clicked. So logically it would be: newNt.text1.text = "hello"
But this doesn't work.
So I just want to change the value of the textbox in the form that launched the frmEdit. How can I do this?
I have been around this problem for a long time now, and couldn't find a solution. Thanks.

Viewing all articles
Browse latest Browse all 21100

Trending Articles