Scenario:
I have an Mdi main form wich contains childreen forms. Every child form has
a lot of controls such as textbox and datagridview.
I'd like to know if it's possible to make a copy of a form, but not in
referenced mode.
e.g.

Dim myChildNumber1 as new MyCustomForm()

Dim myInstanceNumber1 as MyCustomForm()

myInstanceNumber1 = myChildNumber1 --> reference copy

whe users change value on myChildNumber1 this changes will be reflected on
myInstanceNumber1. There's a way to prevent this??

Thanx in advance, and sorry if I made some mistakes

Re: vb. net 2.0 create a "value" copy of a form by Jan

Jan
Fri Oct 10 06:44:46 CDT 2008

Cecco (ITA) <CeccoITA@discussions.microsoft.com>'s wild
thoughts were released on Fri, 10 Oct 2008 02:50:00 -0700
bearing the following fruit:

>Scenario:
>I have an Mdi main form wich contains childreen forms. Every child form has
>a lot of controls such as textbox and datagridview.
>I'd like to know if it's possible to make a copy of a form, but not in
>referenced mode.
>e.g.
>
>Dim myChildNumber1 as new MyCustomForm()
>
>Dim myInstanceNumber1 as MyCustomForm()
>
>myInstanceNumber1 = myChildNumber1 --> reference copy
>
>whe users change value on myChildNumber1 this changes will be reflected on
>myInstanceNumber1. There's a way to prevent this??
>
>Thanx in advance, and sorry if I made some mistakes

This is a VB6 group, you need a group with dotnet in the
name.


--
Jan Hyde (VB MVP)

https://mvp.support.microsoft.com/profile/Jan.Hyde

Re: vb. net 2.0 create a "value" copy of a form by Kevin

Kevin
Fri Oct 10 07:40:27 CDT 2008

Or we can wait for the .Net trolls to answer the question, encouraging
future off topic replies and then maybe redirect (if they feel like it),
thus continuing to confuse the general folks passing through here.

Yeah, I said it.

"Jan Hyde (VB MVP)" <StellaDrinker@REMOVE.ME.uboot.com> wrote in message
news:ttfue494j7og3mqrkfb35b9u0vsv2cau92@4ax.com...
| Cecco (ITA) <CeccoITA@discussions.microsoft.com>'s wild
| thoughts were released on Fri, 10 Oct 2008 02:50:00 -0700
| bearing the following fruit:
|
| >Scenario:
| >I have an Mdi main form wich contains childreen forms. Every child form
has
| >a lot of controls such as textbox and datagridview.
| >I'd like to know if it's possible to make a copy of a form, but not in
| >referenced mode.
| >e.g.
| >
| >Dim myChildNumber1 as new MyCustomForm()
| >
| >Dim myInstanceNumber1 as MyCustomForm()
| >
| >myInstanceNumber1 = myChildNumber1 --> reference copy
| >
| >whe users change value on myChildNumber1 this changes will be reflected
on
| >myInstanceNumber1. There's a way to prevent this??
| >
| >Thanx in advance, and sorry if I made some mistakes
|
| This is a VB6 group, you need a group with dotnet in the
| name.
|
|
| --
| Jan Hyde (VB MVP)
|
| https://mvp.support.microsoft.com/profile/Jan.Hyde



Re: vb. net 2.0 create a "value" copy of a form by Bill

Bill
Fri Oct 10 08:25:15 CDT 2008

Hi Cecco,

For dotnet questions you should ask in the VB dotnet newsgroup:
microsoft.public.dotnet.languages.vb

As to how to do what you ask, you can always create a second instance

Dim myChildNumber1 as New MyCustomForm
Dim myInstanceNumber1 as New MyCustomForm

But I think you are perhaps wanting to share the data ? If so, look at
separation of UI logic from business logic. You can then use data binding
and cloning of your business objects etc.




"Cecco (ITA)" <CeccoITA@discussions.microsoft.com> wrote in message
news:240E82CB-C10A-412A-B3C1-8D7B119CE493@microsoft.com...
> Scenario:
> I have an Mdi main form wich contains childreen forms. Every child form
> has
> a lot of controls such as textbox and datagridview.
> I'd like to know if it's possible to make a copy of a form, but not in
> referenced mode.
> e.g.
>
> Dim myChildNumber1 as new MyCustomForm()
>
> Dim myInstanceNumber1 as MyCustomForm()
>
> myInstanceNumber1 = myChildNumber1 --> reference copy
>
> whe users change value on myChildNumber1 this changes will be reflected on
> myInstanceNumber1. There's a way to prevent this??
>
> Thanx in advance, and sorry if I made some mistakes
>
>
>


Re: vb. net 2.0 create a "value" copy of a form by Mike

Mike
Fri Oct 10 09:42:43 CDT 2008

"Bill McCarthy (Micro$oft Most Valuable Puppet)" <Bill@localhost.com> wrote
in message news:ujBaxwtKJHA.4908@TK2MSFTNGP02.phx.gbl...

> [some nonsense]

Please do NOT answer questions on this group unless those questions relate
to Classic VB because doing so merely causes confusion and also probably
causes the OP, having had his answer, to fail to go on to post his question
on the newsgroup which he should have used in the first place, thereby
"robbing" that group of valid traffic. By doing what you are doing in your
deliberate attempt to destroy this group you are performing a disservice to
both this group and the vb net groups which you love so much. Why don't you
just go back and stay in the vb net groups, Mr McCarthy (Micro$oft Most
Valuable Puppet) and leave this group alone! You are nothing but a nuisance!

Mike




Re: vb. net 2.0 create a "value" copy of a form by Bill

Bill
Fri Oct 10 10:17:11 CDT 2008

Mr Williams,

I have asked you before to please stop harassing me. Your bullying and
intimidation, your obsessive behavior and fixation over my hair etc, etc,
will not stop me helping posters find the answers to the questions they
have. I suggest if you have an issue with seeing people using VB actually
get help, you simply don't read the posts especially mine.

"Mike Williams" <Mike@WhiskyAndCoke.com> wrote in message
news:O%23EuuZuKJHA.728@TK2MSFTNGP03.phx.gbl...

> [some nonsense]
>


Re: vb. net 2.0 create a "value" copy of a form by bgh

bgh
Fri Oct 10 10:32:35 CDT 2008


"Bill McCarthy" <Bill@localhost.com> wrote in message
news:%23RZBWtuKJHA.5232@TK2MSFTNGP02.phx.gbl...
> Mr Williams,
>
> I have asked you before to please stop harassing me. Your bullying and
> intimidation, your obsessive behavior and fixation over my hair etc, etc,
> will not stop me helping posters find the answers to the questions they
> have. I suggest if you have an issue with seeing people using VB actually
> get help, you simply don't read the posts especially mine.
>
> "Mike Williams" <Mike@WhiskyAndCoke.com> wrote in message
> news:O%23EuuZuKJHA.728@TK2MSFTNGP03.phx.gbl...
>
> > [some nonsense]
> >
>

A much easier way is for YOU to go away!
Hint, you are NOT wanted here so piss off back to the DotNet groups!!



Re: vb. net 2.0 create a "value" copy of a form by Wolfgang

Wolfgang
Fri Oct 10 11:02:55 CDT 2008

On Sat, 11 Oct 2008 02:17:11 +1100, "Bill McCarthy" wrote:

>Mr Williams,
>
>I have asked you before to please stop harassing me.

Please stop harrassing this group with your off-topic replies.

Thank you,
Wolfgang

Re: vb. net 2.0 create a "value" copy of a form by Larry

Larry
Fri Oct 10 17:34:09 CDT 2008


"Bill McCarthy" <Bill@localhost.com> wrote
> Mr Williams,
> I have asked you before to please stop harassing me.

I would suggest it is you who should start acting in a more
professional manner. You know perfectly well the problems
that arise when off topic questions routinely get answered.
Namely, they entice more off topic questions to be asked.

In case you haven't read the Rules of Conduct recently, here
is an excerpt:

"Please make sure that your postings in newsgroups and chats
are relevant to the subject at hand. It is normal for some topics
to drift from the stated subject. However, to ensure maximum
benefit for everyone, we encourage you to keep your postings
as close to the subject as possible."

http://www.microsoft.com/communities/conduct/default.mspx

It is impossible to stop off topic questions, and it is
acknowledged that posting VB.Net questions here may
often be attributed to understandable confusion about
where to post. You personally however, as an experienced
newsgroup user, should be setting an example of proper
conduct, and not adding to the confusion by posting off topic
answers to the off topic questions.

The proper answer to VB.Net questions in this group, is a
polite re-direct to the .Net groups.

LFS - VB MVP





Re: vb. net 2.0 create a "value" copy of a form by Bill

Bill
Fri Oct 10 19:59:52 CDT 2008

Hi Larry,

"Larry Serflaten" <serflaten@usinternet.com> wrote in message
news:uNPC$gyKJHA.5972@TK2MSFTNGP06.phx.gbl...
>
> "Bill McCarthy" <Bill@localhost.com> wrote
>> Mr Williams,
>> I have asked you before to please stop harassing me.
>

> In case you haven't read the Rules of Conduct recently, here
> is an excerpt:
>

> http://www.microsoft.com/communities/conduct/default.mspx
>


Did you miss the part where it says :
"Please avoid personal attacks, slurs, and profanity in your interactions."

They are all Mr William's specialties. He's constantly attacking me often
with rude foul gutter language. If you are interested in the Rules Of
Conduct, please tell Mr Williams to stop.

As to the issue of providing answers ALONG with the redirect, I see
absolutely no issue about that. It doesn't add to the volume of posts or
make this newsgroup any noisier EXCEPT for the actions of the likes of Mr
Williams and whatever aliases he posts as. He/They continue to try to make
a storm in a tea cup each time there is a helpful redirect; that is the real
problem.

Providing an answer along with a redirect is actually more helpful to this
newsgroup than a redirect alone as we have seen the redirects often be rude
and less than helpful. (for an example of a rude redirect look at any of Mr
William's redirects). By being helpful, it makes it easier for the original
poster to actually identify those who are interested in helping versus those
who might have some chip on their shoulder over .NET.






Re: vb. net 2.0 create a "value" copy of a form by Larry

Larry
Fri Oct 10 22:47:26 CDT 2008


"Bill McCarthy" <Bill@localhost.com> wrote
> He's constantly attacking me often
> with rude foul gutter language. If you are interested in the Rules Of
> Conduct, please tell Mr Williams to stop.

That's a bit like trying to stop the screaming and shouting between
people trying to bail the water out of a sinking boat. You can ask
them to stop screaming and shouting, or, you can plug the hole
and the screaming and shouting will stop when the water is gone....

> As to the issue of providing answers ALONG with the redirect, I see
> absolutely no issue about that. (...)
> He/They continue to try to make a storm in a tea cup each time there
> is a helpful redirect; that is the real problem.

And others might say 'This is a General Discussion group so I don't
see anything wrong with posting my cake recipies here'. Posts that are
not about classic VB are off topic in this group. Like it or not, that is
the consensus of the group and should be respected. Any retort to
an off topic post (while perhaps unecessarily rude) are a result of
the off topic post. The response does not initiate the off topic post,
its the off topic post that is the cause of the response.

You are continually reminded of this, yet you continue to antagonize.
It seems there is definately more here than meets the eye....

Oh well
LFS



Re: vb. net 2.0 create a "value" copy of a form by Mike

Mike
Sat Oct 11 03:41:06 CDT 2008


"Bill McCarthy" <MostValuablePuppet> wrote in message
news:%233jndzzKJHA.4708@TK2MSFTNGP02.phx.gbl...

> [Bill McCarthy <Micro$oft MostValuablePuppet> said]: Did
> you miss the part where it says: "Please avoid personal attacks,
> slurs, and profanity in your interactions."
> They are all Mr William's specialties.

My name isn't William. It is Williams.

Mike




Re: vb. net 2.0 create a "value" copy of a form by argusy

argusy
Sun Oct 12 10:14:26 CDT 2008

Mike Williams wrote:
> "Bill McCarthy (Micro$oft Most Valuable Puppet)" <Bill@localhost.com>
> wrote in message news:ujBaxwtKJHA.4908@TK2MSFTNGP02.phx.gbl...
>
>> [some nonsense]
>
> Please do NOT answer questions on this group unless those questions
> relate to Classic VB because doing so merely causes confusion and also
> probably causes the OP, having had his answer, to fail to go on to post
> his question on the newsgroup which he should have used in the first
> place, thereby "robbing" that group of valid traffic. By doing what you
> are doing in your deliberate attempt to destroy this group you are
> performing a disservice to both this group and the vb net groups which
> you love so much. Why don't you just go back and stay in the vb net
> groups, Mr McCarthy (Micro$oft Most Valuable Puppet) and leave this
> group alone! You are nothing but a nuisance!
>
> Mike
>
>
>
oh, for heaven's sake, Mike ...... GIVE IT A REST!!!

You __KNOW__ BM's going to reply to this, and I'd say the rest of us are
sick and tired of you two sniping at each other every time an OP
requesting a .net answer comes into this newsgroup. It also pulls in
those others who want to toss in their two cents worth on either side of
any VB/VB.net debate as well

Just write polite replies to OPs saying they're probably going to get a
better response in a vb.net flavoured ng, AND LEAVE IT AT THAT!!!!

It used to be amusing you two would start flaming each other, but now
it's just annoying, boring, time consuming (for you two), and cluttering
up the newsgroup.

Both of you have contributed a lot to helping nubees and other offbeat
queries on variances of VB/VB.net and I hope you both still do, and by
the comments both of you make about each other, you're also not 12yo
'smartbrats'. Maybe both of you are too old to play golf, or lawn bowls,
or anything else that would take you away from a computer, and all you
and Bill can do to keep yourselves amused is sit in front of a computer
writing nasty missives to each other. Form your own hate-each-other
newsgroup, in that case AND STAY THERE. Otherwise

GROW UP!!!

Re: vb. net 2.0 create a "value" copy of a form by argusy

argusy
Sun Oct 12 10:16:21 CDT 2008

Bill McCarthy wrote:
> Mr Williams,
>
> I have asked you before to please stop harassing me. Your bullying and
> intimidation, your obsessive behavior and fixation over my hair etc,
> etc, will not stop me helping posters find the answers to the questions
> they have. I suggest if you have an issue with seeing people using VB
> actually get help, you simply don't read the posts especially mine.
>
> "Mike Williams" <Mike@WhiskyAndCoke.com> wrote in message
> news:O%23EuuZuKJHA.728@TK2MSFTNGP03.phx.gbl...
>
>> [some nonsense]
>>
>
oh, for heaven's sake, Bill ...... GIVE IT A REST!!!

You __KNOW__ Mike's going to reply to this, and I'd say the rest of us
are sick and tired of you two sniping at each other every time an OP
requesting a .net answer comes into this newsgroup. It also pulls in
those others who want to toss in their two cents worth on either side of
any VB/VB.net debate as well

Just write polite replies to OPs saying they're probably going to get a
better response in a vb.net flavoured ng, AND LEAVE IT AT THAT!!!!

It used to be amusing you two would start flaming each other, but now
it's just annoying, boring, time consuming (for you two), and cluttering
up the newsgroup.

Both of you have contributed a lot to helping nubees and other offbeat
queries on variances of VB/VB.net and I hope you both still do, and by
the comments both of you make about each other, you're also not 12yo
'smartbrats'. Maybe both of you are too old to play golf, or lawn bowls,
or anything else that would take you away from a computer, and all you
and Mike can do to keep yourselves amused is sit in front of a computer
writing nasty missives to each other. Form your own hate-each-other
newsgroup, in that case AND STAY THERE. Otherwise

GROW UP!!!

Re: vb. net 2.0 create a "value" copy of a form by Bill

Bill
Sun Oct 12 20:43:37 CDT 2008


"Larry Serflaten" <serflaten@usinternet.com> wrote in message
news:uRZHDQ1KJHA.3340@TK2MSFTNGP03.phx.gbl...
>
> And others might say 'This is a General Discussion group so I don't
> see anything wrong with posting my cake recipies here'.


Whatever Larry. If you are going to argue rediculous things like that I see
no point in attempting ot further this discussion. As is you've alreayd
piggy backed onto someone else's post.


> Posts that are
> not about classic VB are off topic in this group.


This is vb.general.discussion. Just as winapi post should be redirected to
a more specific group whereit exists so too should dotnet ones. A person
who posts to the vb.general.discussion group should be treated with the same
courtesy and respect in both cases.


> Any retort to
> an off topic post (while perhaps unecessarily rude) are a result of
> the off topic post. The response does not initiate the off topic post,
> its the off topic post that is the cause of the response.
>

Nonsense. I think this is where we view things very differently. The
un-necessarily rude posts are never appropriate and the original poster
should not have this thrust upon them, nor should they have this childish
squabbling either tacked onto their post because some screaming
anti-dottnetters want to harass them and anyone who uses .Net. It's no
coincidence that the very people who constantly retort are the same people
screaming about the boat taking on water. There's no point trying to plug
the holes until they stop trying to put more holes in the boat.

Anyway, I'm not going to waste anymore time arguing this with you. Good
luck with plugging those holes ;)

















Re: vb. net 2.0 create a "value" copy of a form by Mike

Mike
Mon Oct 13 01:05:42 CDT 2008


"Bill McCarthy" <Micro$oft MostValuablePuppet> wrote in message
news:eBiItUNLJHA.1500@TK2MSFTNGP06.phx.gbl...

> Anyway, I'm not going to waste anymore time arguing . . .

. . . bet you do :-)

Mike