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

Help with displaying text in textbox??

I have a textbox that I've watched in debug which receives this string:
"557614"
However, it doesn't display the text.
Here may be the reason, so I need to know the proper way to do this:
public class ThreadFunction1
{
//put new thread process here
public void getOneAtATime()
{

Form1 findListBox = new Form1();
findListBox.textBox6.Text = "None";
foreach (string invoice in findListBox.listBox2.Items)
{ //5542973
Form1 tboxFinder = new Form1();
tboxFinder.textBox6.Text = string.Empty;
tboxFinder.textBox6.Text = invoice;

Ok, invoice string contains the number, and the number, according to
the debugger, is in the textbox. Because of this string being burried
so deep in the code, is that possible? Yes, it is set to visible and
black font.
Thanks,
Trint

Nov 17 '05 #1
2 1032
If you're accessing a control from a thread other than the main UI thread,
you must use Control.Invoke to update it. Have a look at
http://www.yoda.arachsys.com/csharp/...winforms.shtml for more
information.

"trint" <tr***********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I have a textbox that I've watched in debug which receives this string:
"557614"
However, it doesn't display the text.
Here may be the reason, so I need to know the proper way to do this:
public class ThreadFunction1
{
//put new thread process here
public void getOneAtATime()
{

Form1 findListBox = new Form1();
findListBox.textBox6.Text = "None";
foreach (string invoice in findListBox.listBox2.Items)
{ //5542973
Form1 tboxFinder = new Form1();
tboxFinder.textBox6.Text = string.Empty;
tboxFinder.textBox6.Text = invoice;

Ok, invoice string contains the number, and the number, according to
the debugger, is in the textbox. Because of this string being burried
so deep in the code, is that possible? Yes, it is set to visible and
black font.
Thanks,
Trint

Nov 17 '05 #2
Thanks Sean. That will work for me.
Trint

Nov 17 '05 #3

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

Similar topics

23
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application...
1
by: Maziar Aflatoun | last post by:
Hi everyone, I have this DataGrid that I bind to a DataTable. However, instead of displaying the column 'Qty', I like to place it in a textbox and display the value of Qty as the default value...
7
by: alyssa | last post by:
Hi guys, May i know how to match the value in the text box with the table's attribute in SQL Server? For example, when the customer enter their customer id and press the button, I want to display...
0
by: Earl Teigrob | last post by:
I can create a new custom control (and not change it) and add it to the toolbox and drag it onto the disign screen and it works just fine, displaying the text . However, when I add the following...
0
by: TN Bella | last post by:
This may be a double post... I appreciate all the help I have gotten on here - thank you! So with that in mind, I figured I would try another post! :) I need to reformat the following...
7
by: Aaron | last post by:
Complete code follows. I am new to .NET programming (and programming in general) and I am having a difficult time understanding how to fill a variable in one sub, and then access it from...
2
by: moumita | last post by:
I have the folowing code..the logic according to me is correct..but I dont know...the msg boxes are not displaying anything...am I supposed to change any settings ??? Public Class Form1
12
by: brwalias | last post by:
Hi, using .net 2 sql server 2005 Here is my situation: I'm passing a variable in the url from a selection on Page A and need to display the results on the Results page be based on that...
1
by: seadog | last post by:
Hi, I am having a problem displaying data in a textbox array. What I am trying to do is have 5 number enter 5 textboxes, starting from the first and working there way to the bottom textbox. What...
6
by: pagina21 | last post by:
I am a true beginner in Access and coding. I am creating a database with facility information and I want to use the address of a specific facility to display a map on my form or at least open a...
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.