Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic .NET (http://www.programmingforums.org/forum19.html)
-   -   strange phenomenon (http://www.programmingforums.org/showthread.php?t=11204)

hush Aug 28th, 2006 5:43 PM

strange phenomenon
 
I got some working code but there seems to be a strange phenomenon.

I got 2 forms that I want to pass data back and forth to.

In this example I am passing the data in 3 text boxes on form2 to form1. So I created 3 new properties in form1 and then use(I’m using generic names for simplicity):

:

Form1.passedtext = textbox1.text
Form1.passedtext2 = textbox2.text
Form1.passedtext3 = textbox3.text


And to test it works I then put a
:

msgbox(me.passedtext)
in a button event procedure on form1.

Now here the strange bit-
If I enter text in all 3 text boxes on form 2 then it works fine but if I leave one of them blank then the message box seems to be empty.

What is that all about?

And why can’t I use public variable to move data across?

hush

melbolt Sep 8th, 2006 2:07 AM

are these both childforms? or is form1 the parent form?


All times are GMT -5. The time now is 1:06 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC