![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Feb 2006
Location: 127.0.0.1
Posts: 35
Rep Power: 0
![]() |
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) 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 |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
are these both childforms? or is form1 the parent form?
__________________
I have never let my schooling interfere with my education. -Mark Twain- Xbox live gamertag: melbolt |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strange behavior: getting different results from the same input on a function. WTH? | pulpfiction | C | 1 | Mar 28th, 2006 11:43 PM |
| Strange, but true! | frankish | C++ | 9 | Oct 26th, 2005 9:04 PM |
| Some-thing strange about MP3 Players/Recorders !!! | on_auc | Coder's Corner Lounge | 3 | May 4th, 2005 10:50 AM |
| Strange Fraction Thing | gamehack | C++ | 2 | Mar 6th, 2005 6:19 PM |
| C program strange error | ar1 | C++ | 1 | Feb 9th, 2005 1:14 PM |