473,385 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Form

I am new in VB.NET and at the bigining of my work I have a problem. I wont
to make small program which contain 3 forms. In the 1st Form I put 10
Textbox which
contents I need to display in the 3th form. This 3th form I connect with
button
OK. I wont that user in 1st form input name, date of bearth, etc. in
textboxes and to show in the 3 form like this: "My name is" & name & " and I
was born" & date of bearth...
If someone can halp me I will appreciate!
PS: My english is not very well but I hope that you understand what I want
to say.

Best regards
Mihailo

Nov 21 '05 #1
2 1486
Pass the variables into Form3 as an array of strings or collection.

Example:
Public Class Form3
Dim mInput as String
Sub New(Input as Sring)
mInputs = Input
End Sub
End Class

'In Form1
Sub MakeForm3
Dim F3 as Form3("Test Variable")
F3.ShowDialog()
End Sub

This code wasn't tested but it's the idea.
Chris
"Mihailo" <al*******@yahoo.com> wrote in message
news:ct**********@news.eunet.yu...
I am new in VB.NET and at the bigining of my work I have a problem. I wont
to make small program which contain 3 forms. In the 1st Form I put 10
Textbox which
contents I need to display in the 3th form. This 3th form I connect with
button
OK. I wont that user in 1st form input name, date of bearth, etc. in
textboxes and to show in the 3 form like this: "My name is" & name & " and
I
was born" & date of bearth...
If someone can halp me I will appreciate!
PS: My english is not very well but I hope that you understand what I want
to say.

Best regards
Mihailo

Nov 21 '05 #2

"Chris, Master of All Things Insignificant" <chris@No_Spam_Please.com> wrote
in message news:#$*************@TK2MSFTNGP12.phx.gbl...
Pass the variables into Form3 as an array of strings or collection.

Example:
Public Class Form3
Dim mInput as String
Sub New(Input as Sring)
mInputs = Input
End Sub
End Class

'In Form1
Sub MakeForm3
Dim F3 as Form3("Test Variable")
F3.ShowDialog()
End Sub

Thanks a lot
Mihailo
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John | last post by:
Dear all, It been more than 3 days I am trying to debug this program, I interpret it using activePerl and it is giving (perl -wc code_process.pl) no error syntax but when I put it online, change...
5
by: Richard Cornford | last post by:
I am interested in hearing opinions on the semantic meaning of FORM (elements) in HTML. I have to start of apologising because this question arose in a context that is not applicable to the...
4
by: Targa | last post by:
Trying to total some price fields in a form but doesnt work when all the referenced form fields dont exisit. This is for an invoice - pulled prom a database and the form doesnt always contain the...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
19
by: Raposa Velha | last post by:
Hello to all! Does any of you want to comment the approach I implement for instantiating a form? A description and an example follow. Cheers, RV jmclopesAThotmail.com replace the AT with the...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
5
by: RAJ | last post by:
hi plz tell me how to know "how window is going to close"... i have to right code for X button of forms... plz telll me thanks bye
6
by: Gary Miller | last post by:
Does anyone know how to detect a modeless form on closing by the form that invoked the modeless form? form.Show();
4
by: Alex Sibilev | last post by:
Hello, I have a really weird problem I've been trying to solve it without any luck for the last couple of hours :( I'm writing a "conference board" application (quite similar to ASP.NET...
5
by: ortaias | last post by:
I have a form which calls up a second form for purposes of data entry. When closing the data entry form and returning to the main form, things don't work as expected. When I return to the main...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.