473,396 Members | 2,108 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,396 software developers and data experts.

getting text from 1 form to a label on another form

11
i have a form where the user inputs text in a text box and then click a button saying continue then i have another form where the user inputs more text and clicks a button saying continue i want the first part of text to be in a label on the 3rd form and the 2nd text in another label on the third form.

i think i have the code, this is what i put in but nuthin went into the labels:


txtboxname.Text = formname.labelname.Text


but nothing goes into the labels


please help!!!!!!!!!!!!
Aug 1 '07 #1
5 2118
arunbalait
164 100+
i have a form where the user inputs text in a text box and then click a button saying continue then i have another form where the user inputs more text and clicks a button saying continue i want the first part of text to be in a label on the 3rd form and the 2nd text in another label on the third form.

i think i have the code, this is what i put in but nuthin went into the labels:


txtboxname.Text = formname.labelname.Text


but nothing goes into the labels


please help!!!!!!!!!!!!
Actually what you really want?

One form1.text1.text=form2.label1.caption or?
form1.label1.caption=form1.text1.text

Textbox's values to be assigned to label or label's caption should be assigned to textbox?
Aug 1 '07 #2
hariharanmca
1,977 1GB
i have a form where the user inputs text in a text box and then click a button saying continue then i have another form where the user inputs more text and clicks a button saying continue i want the first part of text to be in a label on the 3rd form and the 2nd text in another label on the third form.

i think i have the code, this is what i put in but nuthin went into the labels:


txtboxname.Text = formname.labelname.Text


but nothing goes into the labels


please help!!!!!!!!!!!!
which version of VB that you are using?

because, VB 6 have only labelname.Caption but you gave labelname.Text
check is this correct.

and main thing is you have to get the assigenment statement format.

it will be just like below.
Expand|Select|Wrap|Line Numbers
  1.  GetAssigenedValueControl =    SetAssigeningValueControl
Aug 1 '07 #3
Zaccy
11
Actually what you really want?

One form1.text1.text=form2.label1.caption or?
form1.label1.caption=form1.text1.text

Textbox's values to be assigned to label or label's caption should be assigned to textbox?

i tried this and still nothin appeared in the label
Aug 1 '07 #4
hariharanmca
1,977 1GB
i tried this and still nothin appeared in the label

can you post what you had tryed?
Aug 1 '07 #5
Zaccy
11
ok i got it working differantly
i just put a button conecting to an input box that led to the label
thnx anyway peepz
Aug 1 '07 #6

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

Similar topics

2
by: Alex | last post by:
Hi all, I'm writing a small web application which searches a database based on a date field, and populates a datagrid control with the results. The datagrid control has selection buttons added...
6
by: tshad | last post by:
I need to get to a status label I have on my footer section of my datalist. There is no event happening that would go to the footer. I am just doing some processing and want to update the label...
1
by: nospamjac | last post by:
Hi, Is there a way to update the text of an asp:label on a webform without refreshing the entire page? What is called by button clicks and other events that refresh a webform control? See the...
6
by: Roger Ries via DotNetMonster.com | last post by:
I'm trying to change the text in a label from another form. lblInfo.Text = "ABC" Works for the form your currently in but how the heck do you change that label information from another form. ...
2
by: Jimmy | last post by:
Ok, this is going to sound weird but I just recently upgraded to Access 2003 (fyi in case this is an A2k bug or something) and I'm working on a form from a db that I converted from A97. There are...
4
by: bushi | last post by:
hi ! i have following code to display some text on a web form,after getting it from database. <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate>...
4
by: AshishMishra16 | last post by:
HI friends, I am using the Flex to upload files to server. I m getting all the details about the file, but I m not able to upload it to Server. Here is the code i m using for both flex & for...
1
by: hotrod57 | last post by:
I am trying to append the results from a form to a text file. My code is supposed to print out the results on one page, and append the results to another page each time data is entered on the form...
1
by: semomaniz | last post by:
I have a form where i have created the form dynamically. First i manually added a panel control to the web page. Then i added another panel dynamically and inside this panel i created tables. I have...
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
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.