1

Topic: To learn a name of the cloned form

Children prompt as to learn a name of the cloned form, at me it is impossible to delete from it all objects, after all I should as that to it addresses! Or who can prompts as to create the empty form, the example put.

2

Re: To learn a name of the cloned form

MF.Name = "MyNewForm"

?

3

Re: To learn a name of the cloned form

Akina, not absolutely I understand as I will see a form name

Private Sub Command4_Click ()
Dim an As New Form1
a. Show
Form1.Hide ' the principal form is closed
a. Name = "MyNewForm" ' and here an error produces
End Sub

4

Re: To learn a name of the cloned form

Akina, probably so? MsgBox a. Name

5

Re: To learn a name of the cloned form

, the form name cannot be changed.

assei wrote:

to learn a name of the cloned form... I should as that to it addresses

1) the form name is not necessary that to it to address. You have a variable "and", through it and address
2) New Form1 clones nothing, there is a new copy of the initial form which has been created in the designer, without the elements added by you
3) from this form it does not turn out to delete anything. It is possible to delete only added in  elements

6

Re: To learn a name of the cloned form

assei wrote:

Form1.Hide ' the principal form is closed

4) the form is not closed, and disappears, but continues to exist. That it absolutely to close, it is necessary to make Unload

7

Re: To learn a name of the cloned form

assei wrote:

........ Without elements,

so at me it turns out that there is a copy with all objects which I added initially and it would be would be desirable that the form empty

8

Re: To learn a name of the cloned form

assei wrote:

which I added initially

added in ? Well so they also will be, to delete them it is impossible

assei wrote:

and it would be would be desirable that the form empty

that hinders to use for this purpose initially empty form?

9

Re: To learn a name of the cloned form

Shocker. Pro!? It is necessary to think, then it is necessary to rethink all project initially..... Thanks I will think!

10

Re: To learn a name of the cloned form

assei wrote:

it would be would be desirable that the form empty

Well and create the new empty form, what for to do a copy existing? And it is even better - at once initially include such empty form in the project, and show it when it is required...

11

Re: To learn a name of the cloned form

Akina the matter is that I thought of a question of simplification of the project without additional forms in the project and to create from dynamical the code and so the project will weigh a little

12

Re: To learn a name of the cloned form

assei , the simplification is only a method to reach not which purpose. Where this purpose, what it? And if it is not present, and here simply it wanted - that where how more reasonably to send to a stub similar , and to get rid of hemorrhoids generated by them.
As an overhead projector from one more form in the project - copecks. And from the empty form occasionally the project generally does not increase by byte.

13

Re: To learn a name of the cloned form

assei wrote:

Shocker. Pro!? It is necessary to think, then it is necessary to rethink all project initially..... Thanks I will think!

assei wrote:

Akina the matter is that I thought of a question of simplification of the project without additional forms in the project and to create from dynamical the code and so the project will weigh

a little
It is necessary to think in the beginning, then to operate.
Concerning the size of the project there is no special difference where form elements - in the description of the form or in the program code will be described.