473,394 Members | 1,722 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,394 software developers and data experts.

TextBoxes on Multiple Forms

1
Im new to programming and am using visual basic. I need to know how to transfer data from a text box to another textbox on a different form. I also need to know how to update all of the textboxes, checkboxes, etc on a form as soon as it loads. Sorry for lack of difficulty of the question and i know that all of you must think im a joke but any help would be greatly appriciated.
May 31 '07 #1
2 2025
SammyB
807 Expert 512MB
Im new to programming and am using visual basic. I need to know how to transfer data from a text box to another textbox on a different form. I also need to know how to update all of the textboxes, checkboxes, etc on a form as soon as it loads. Sorry for lack of difficulty of the question and i know that all of you must think im a joke but any help would be greatly appriciated.
Hi & welcome! We need to know what VB you are using: VBA, VB6 or VB.Net. Also, what do you mean by "update"? Update from where? Update with what? Thanks! --Sam
May 31 '07 #2
kadghar
1,295 Expert 1GB
Hi!

If you have Text1 in Form1 and Text2 in Form2 (both textboxes):

Sub Copy()
Form2.Text2.Text = Form1.Text1.Text
End Sub

If you want it to happen when you load Form2, just write it down in the Form2_Load Sub. (that you can edit by clicking on Form2 and in the upper left select you'll find "Load" or "Initialize" or whatever your VB version uses)

You can also use strings.

Good Luck
May 31 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Drew | last post by:
I have a db table like the following, UID, int auto-increment RegNo Person Relation YearsKnown Now here is some sample data from this table,
4
by: koumides | last post by:
I have a very simple webpage (html form). There are about 50 input textboxes and users are expected to insert data. No I would like to know how in javascript I can check the values in all textboxes...
1
by: Edlueze | last post by:
I have a number of forms with large textboxes for the purposes of editing memo fields, and just recently I've noticed some bizarre behavior. For some textboxes the END and HOME keys do nothing,...
11
by: ian.davies52 | last post by:
Is there anything I can do about the apparent limit on the number of textboxes that have calculations as their control source on a form or report in ms-access? I have a query that pulls together...
1
by: Wesman | last post by:
Threads, textboxes and scrolling Thanks in advance for any information on this matter. I have run into a small richtextbox, scrolling and tread issue. Which has me totally confused. Instead of...
4
by: Drum2001 | last post by:
SELECT ra_report.CCENTER, FROM ra_report WHERE (((ra_report.CCENTER) Like "*" & !! & "*" Or (ra_report.CCENTER) Like "*" & !! & "*" Or (ra_report.CCENTER) Like "*" & !! & "*" Or...
6
by: slinky | last post by:
I have a form called "subCalendar" with two unbound textboxes I simply need to Sum. I used this below, but get an error. I have the textboxes set to general number. Any ideas? Thanks! ...
6
by: weg22 | last post by:
Hi all, I have two lists of textboxes: 'Create list of all textboxes on error log data tab el_textboxes = New List(Of Windows.Forms.TextBox)(New Windows.Forms.TextBox() {addr_x100, addr_x101,...
8
by: Steve | last post by:
Hi All I have written some code to rescale my windows forms application forms depending on the users screen resolution The application is designed for 1024 x 768 but some customers have 19"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.