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

Changing the text from a textbox to a label.

How do you change the text from a textbox the someone put in it to be in a label on a different form.
Nov 8 '07 #1
3 929
debasisdas
8,127 Expert 4TB
you need to qualify the label by the form name

form1.label1.caption=....................
Nov 8 '07 #2
since most variables are not handed over, you could tranfer it over an invisible button's caption. - It turned out to be the least CPU consuming version when I had to do it while huge data amounts were processed in the backround...
Nov 8 '07 #3
jamesd0142
469 256MB
you need to qualify the label by the form name

form1.label1.caption=....................
In simple terms:


Expand|Select|Wrap|Line Numbers
  1. From the origional form (where the textbox is)
  2. <FormName>.<LabelName>.Text = <textbox>.Text
  3.  
  4. From the other form (where the label is)
  5. <lableName>.text = <formName>.<textbox>.Text
  6.  
Nov 8 '07 #4

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

Similar topics

0
by: Abhijeet Kumar | last post by:
Hi How can i justify align text on Label Control. I am working in C# Desktop application
3
by: Alpha | last post by:
Hello. I am not a C++ programmer...I have studied a bit of Java, but that's it. However, I am playing an online game written in C++. I was wondering how one could change the color of text (that...
1
by: Andy Bates | last post by:
Hi - I need to change the text of a subitem in a listview (in details view), but the text doesn't change; can anyone tell me how to achieve this? TIA - Andy
2
by: adrian | last post by:
I'd be very grateful if anyone could help me. I have a frame based setup and from within my main frame I'm trying to change some text in the header frame. I'm dabbling with javascript and have...
0
by: Scott | last post by:
I have a textbox to enter an email address followed by a password textbox. The email has a regularexpressionvalidator and a requiredfieldvalidator. The ReqField works fine, but if I put in an...
7
by: Sandy | last post by:
Hello - I have a form that when submitted checks the database and if the username is already taken, a label shows indicating same. I need to make that label NOT visible after the user clicks...
1
by: Opettaja | last post by:
How would I go about changing text labels on a parent form from a child? For example Changing text labels on Form1 from Form2, and Form2 is opened from Form1? Any suggestions would be greatly...
2
by: Pucca | last post by:
How do I make the TreeView control's node text (or label) editable when user click twice on it? (Not double click). It's like the explorer on our computer drives. The directory tree label...
1
by: cyningeston | last post by:
OS: WinXP Pro, VB/ASP/ADO.NET I'm building a web-based supplier management application. For each supplier we are required by the FDA to track certain documents. I've managed to pull them from...
2
by: Dan | last post by:
Hi, i want to change the value of a textbox and the text of a label with javascript. I didi this: it works for the textbox, but not for the label (i tried both with 'text' and with 'value')....
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: 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: 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
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
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...

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.