473,385 Members | 1,309 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.

how to display text entered in a textbox?

hi,

How do i display text that a user entered in textbox as a display label?

Basically,i just want to display it as a summary of the choices made.
Oct 7 '10 #1
5 5160
Mariostg
332 100+
What GUI are you using? WxPython, Qt, Tkinter... You don't provide much detail.
If you explain a bit what you have done so far it might be easier to help.
Oct 7 '10 #2
Hi there,

im using SharpDevelop to create my GUI. but i found it's quite hard to search online tutorial or forum for SharpDevelop.

i used tabControl. In first tabpage, user need to fill in the textboxs(ie:Name,id number,age,address,etc.) Then "Next" button click, a summary of what have been entered in 1st tabpage need to be display in second tabpage. i tried using label to display,

self._label12.Text = self._textBoxName.Text
self._label14.Text = self._textBoxAge.Text

but it doesnt work.. Can anyone help me with this? or is there a better way to do this?
Oct 7 '10 #3
Mariostg
332 100+
Sorry, I don't use SharpDevelop. Can't help.
Oct 7 '10 #4
Hi there,

i used tabControl. In first tabpage, user need to fill in the textboxs(ie:Name,id number,age,address,etc.) Then "Next" button click, a summary of what have been entered in 1st tabpage need to be display in second tabpage. i tried using label to display,

self._label12.Text = self._textBoxName.Text
self._label14.Text = self._textBoxAge.Text

but it doesnt work.. Can anyone help me with this? or is there a better way to do this?

thanks-
-im using SharpDevelop to create my GUI.
Oct 7 '10 #5
bvdet
2,851 Expert Mod 2GB
I am not familiar with #develop. In Tkinter you would initialize a StringVar() object for each Entry field. The object would be associated with the Entry by assigning it to the Entry textvariable option. When the user enters a value in an Entry, the value can be obtained with the StringVar object's get() method. Something like this:
Expand|Select|Wrap|Line Numbers
  1. var = StringVar()
  2. Entry(master, textvariable=var)
  3.  
  4. self._label12.Text = self.var.get()
You need to find out what methods and options are available.
Oct 7 '10 #6

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

Similar topics

2
by: nsj | last post by:
how to display text in new line in a TextBox in Vb.NET?
3
by: deko | last post by:
I store hyperlinks as text in a table like this: Invoice11-21-2003.pdf#file://P:\Finance\PrefVendors\Receipts\Invoice11-21-20 03.pdf I need to run a report that lists the documents - or...
1
by: Pep | last post by:
Hi, I'm using a ListView control in an app I'm developing... When a user clicks the New button in my form I add a new ListViewItem and call the BeginEdit() function on this item. My problem...
10
by: mg | last post by:
I want to enter characters in a TextBox in a WebForm, press a Button in the WebForm, and read the characters that were typed into the TextBox from within the Button_Click event handler. The main...
0
by: nikou_70 | last post by:
Hi, I have a search page, after search returns value I want to display fields in text box instead of table. Thanks
3
by: remya1000 | last post by:
i'm using ASP with MSAccess as database. i have two buttons and two textbox in my page. when i press my first button (First month) i need to display the current month in one textbox and last one...
4
by: singh79 | last post by:
Hi Pls Any One Solve My Problem. One Text box for Enter user Name.My Requirement is if web application is Run then, In Textbox Display "Pls Enter User name" If Click By Mouse the text Is...
2
by: Eng Teng | last post by:
Where is the part to set when my mouse pointer move to textbox or label or buton it will display text description ? Regards, Tee
2
by: vikaspa | last post by:
In one of the web sites I Really got an excellent code to convert text entered in ms word to html format I am using following code for conversion <?php $txt= superhtmlentities($rrows);...
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
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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?
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.