<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: How To Pass Data Between Forms in VB.NET</title>
	<atom:link href="http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/</link>
	<description>Articles on VB.NET and Software Development Team Leadership</description>
	<pubDate>Tue, 07 Sep 2010 01:59:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Robert</title>
		<link>http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/comment-page-1/#comment-1394</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Mon, 14 Sep 2009 08:50:45 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/#comment-1394</guid>
		<description>Very well, thank you. I just wonder if the couold be some explanation added as to where exactly in code we add those overloads. On the side of calling procedure or called function?</description>
		<content:encoded><![CDATA[<p>Very well, thank you. I just wonder if the couold be some explanation added as to where exactly in code we add those overloads. On the side of calling procedure or called function?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/comment-page-1/#comment-1378</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Thu, 16 Jul 2009 16:02:50 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/#comment-1378</guid>
		<description>I was wandering if this technique will work for Web forms also</description>
		<content:encoded><![CDATA[<p>I was wandering if this technique will work for Web forms also</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MUDO</title>
		<link>http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/comment-page-1/#comment-1351</link>
		<dc:creator>MUDO</dc:creator>
		<pubDate>Mon, 18 May 2009 20:19:46 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/#comment-1351</guid>
		<description>Hi.

I would like to know how to pass variable to form before creation of this form. I want to pass object which represents important data and then to perform some actions on form with this object. So I want to have form for user and for visual purpose no for variables and performing actions. For this purpose I have mentioned object.

I dont know how to pass variable to form which is Startup form. I want to have SDI application and this form must be as Startu form. One solution is to create second from, set it as Startup form and call my first form.

In C# it is simple - there is Program.cs and Application.Run so I can call Application.Run(new frmC_Main());

But VB? There are Application.myapp and Application.Designer.vb files, but how to call something similar to C#?

Thx in advance.

...MUDO...</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>I would like to know how to pass variable to form before creation of this form. I want to pass object which represents important data and then to perform some actions on form with this object. So I want to have form for user and for visual purpose no for variables and performing actions. For this purpose I have mentioned object.</p>
<p>I dont know how to pass variable to form which is Startup form. I want to have SDI application and this form must be as Startu form. One solution is to create second from, set it as Startup form and call my first form.</p>
<p>In C# it is simple - there is Program.cs and Application.Run so I can call Application.Run(new frmC_Main());</p>
<p>But VB? There are Application.myapp and Application.Designer.vb files, but how to call something similar to C#?</p>
<p>Thx in advance.</p>
<p>&#8230;MUDO&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Farhan</title>
		<link>http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/comment-page-1/#comment-1343</link>
		<dc:creator>Farhan</dc:creator>
		<pubDate>Tue, 28 Apr 2009 03:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/#comment-1343</guid>
		<description>Hi, thanks for the article. I am a newbie to programming.it would be of great help if you make a demo project with source code available,so that a person like me can get a very clear picture of the solution you suggested.Also if you have the other way around soultion available to compare with the solution you suggested.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi, thanks for the article. I am a newbie to programming.it would be of great help if you make a demo project with source code available,so that a person like me can get a very clear picture of the solution you suggested.Also if you have the other way around soultion available to compare with the solution you suggested.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ignacio From Mexico</title>
		<link>http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/comment-page-1/#comment-1256</link>
		<dc:creator>Ignacio From Mexico</dc:creator>
		<pubDate>Wed, 26 Nov 2008 02:59:37 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/#comment-1256</guid>
		<description>Thanks a lot. With your dossier I have solved all my problems with "dialog " emulated forms. Very concise and clear</description>
		<content:encoded><![CDATA[<p>Thanks a lot. With your dossier I have solved all my problems with &#8220;dialog &#8221; emulated forms. Very concise and clear</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian in UK</title>
		<link>http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/comment-page-1/#comment-1194</link>
		<dc:creator>Brian in UK</dc:creator>
		<pubDate>Thu, 28 Aug 2008 16:24:19 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/#comment-1194</guid>
		<description>I have been using the new method to pass data into forms for some time.

I also use the arguments passed in to set up the form to edit a record or add a new one. So if i pass CustomerID with 0 then the form go's into an add new mode.</description>
		<content:encoded><![CDATA[<p>I have been using the new method to pass data into forms for some time.</p>
<p>I also use the arguments passed in to set up the form to edit a record or add a new one. So if i pass CustomerID with 0 then the form go&#8217;s into an add new mode.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gina Cresse</title>
		<link>http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/comment-page-1/#comment-1081</link>
		<dc:creator>Gina Cresse</dc:creator>
		<pubDate>Fri, 18 Apr 2008 01:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/#comment-1081</guid>
		<description>Followup: Regarding the above post, I discovered my problem was because I was passing the arguments to the Public Sub New in the designer.vb file instead of adding a Public Sub New(arguments) to the form.vb file.  Once I re-arranged that code, everything works perfectly now.

Thanks!</description>
		<content:encoded><![CDATA[<p>Followup: Regarding the above post, I discovered my problem was because I was passing the arguments to the Public Sub New in the designer.vb file instead of adding a Public Sub New(arguments) to the form.vb file.  Once I re-arranged that code, everything works perfectly now.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gina Cresse</title>
		<link>http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/comment-page-1/#comment-1080</link>
		<dc:creator>Gina Cresse</dc:creator>
		<pubDate>Fri, 18 Apr 2008 00:05:33 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/#comment-1080</guid>
		<description>Great article.  I've used your method with much success.  Now, though, I've run into a problem and I wonder if you have an answer.  I've added the arguments to the Sub New sub in a form that contains several Public subs that get called from other forms.  

For example: In Form1 I have code that calls a public Sub in Form2, but once I changed Form2 to accept arguments, I can no longer access those public subs in Form2 from Form1.  I was able to solve that (sort of) by declaring the public subs as Shared, but that has caused a problem when the Public Shared sub is showing Form3.  It used to create a new instance of Form3 each time, but now it opens only 1 Form3 and shares it between Form1 and Form2, which I don't want.

I guess my question is, why do I lose the ability to call Form2.SomePublicSub from Form1 after I change Form2 to accept arguments?  

Thanks for a great article.  I give it a 10+.</description>
		<content:encoded><![CDATA[<p>Great article.  I&#8217;ve used your method with much success.  Now, though, I&#8217;ve run into a problem and I wonder if you have an answer.  I&#8217;ve added the arguments to the Sub New sub in a form that contains several Public subs that get called from other forms.  </p>
<p>For example: In Form1 I have code that calls a public Sub in Form2, but once I changed Form2 to accept arguments, I can no longer access those public subs in Form2 from Form1.  I was able to solve that (sort of) by declaring the public subs as Shared, but that has caused a problem when the Public Shared sub is showing Form3.  It used to create a new instance of Form3 each time, but now it opens only 1 Form3 and shares it between Form1 and Form2, which I don&#8217;t want.</p>
<p>I guess my question is, why do I lose the ability to call Form2.SomePublicSub from Form1 after I change Form2 to accept arguments?  </p>
<p>Thanks for a great article.  I give it a 10+.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jfrankcarr</title>
		<link>http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/comment-page-1/#comment-1070</link>
		<dc:creator>jfrankcarr</dc:creator>
		<pubDate>Mon, 14 Apr 2008 13:12:32 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/#comment-1070</guid>
		<description>Hi Paul,

Without seeing the code it's difficult to tell exactly what's going wrong. Typically you'll see this kind of thing happen when either a new object/control instance is created or a new array or dataset is created accidentally. Creating objects in different threads can also cause this to happen. 

The best thing to do is just walk through your code to see if there is any place where you might be accidentally initializing an object. If nothing stands to you, debug it and step through it. You'll probably find the culprit lines of code when you do that.</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>Without seeing the code it&#8217;s difficult to tell exactly what&#8217;s going wrong. Typically you&#8217;ll see this kind of thing happen when either a new object/control instance is created or a new array or dataset is created accidentally. Creating objects in different threads can also cause this to happen. </p>
<p>The best thing to do is just walk through your code to see if there is any place where you might be accidentally initializing an object. If nothing stands to you, debug it and step through it. You&#8217;ll probably find the culprit lines of code when you do that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/comment-page-1/#comment-1069</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 14 Apr 2008 12:46:43 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/09/28/how-to-pass-data-between-forms-in-vbnet/#comment-1069</guid>
		<description>I'm trying to load a combo box and a list box in a form from code in a module but the data never gets there. Form-to-form works ok, it's only module to form that doesn't. Any ideas?</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to load a combo box and a list box in a form from code in a module but the data never gets there. Form-to-form works ok, it&#8217;s only module to form that doesn&#8217;t. Any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
