473,396 Members | 1,996 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.

Why do my Label.Text values disappear?

I have a form with several labels on it that ae filled in through code but
for some reason the contents disappear. Does anyone have a guess as to what
might be happening?

Here is the part of the code where the problem occurs:

lblRunItem.Text = Item
txtCoilSpec.Text = CoilSpec
lblRunNo.Text = RunNo
lblOrdQty.Text = Qty
txtCore.Text = CGN
If CoreType = "I" Then

Single stepping thru the code and watching the "AUTO's" window I see the
lable contents being filled but when the code hits the "IF" test the contents
become an EMPTY STRING, why? The contents of all 3 labels disappear, the text
boxes are not impacted.

This code sets inside the KeyPress event of one of the text boxes on this
form. It makes no difference whether I add the "ME." on the front or not.
Nov 21 '05 #1
4 4753
Are they actually disapearing from the form itself or do they 'Appear' to
disapear when you are debugging. You have to remember that Auto's will
disapear "From View" in the auto's window when they go out of close scope,
it's one of the characteristics of autos window.

--
Terry Burns
http://TrainingOn.net
"Darrell Wesley" <Da***********@discussions.microsoft.com> wrote in message
news:A3**********************************@microsof t.com...
I have a form with several labels on it that ae filled in through code but
for some reason the contents disappear. Does anyone have a guess as to
what
might be happening?

Here is the part of the code where the problem occurs:

lblRunItem.Text = Item
txtCoilSpec.Text = CoilSpec
lblRunNo.Text = RunNo
lblOrdQty.Text = Qty
txtCore.Text = CGN
If CoreType = "I" Then

Single stepping thru the code and watching the "AUTO's" window I see the
lable contents being filled but when the code hits the "IF" test the
contents
become an EMPTY STRING, why? The contents of all 3 labels disappear, the
text
boxes are not impacted.

This code sets inside the KeyPress event of one of the text boxes on this
form. It makes no difference whether I add the "ME." on the front or not.

Nov 21 '05 #2
They actually disappear from the form.

"Terry Burns" wrote:
Are they actually disapearing from the form itself or do they 'Appear' to
disapear when you are debugging. You have to remember that Auto's will
disapear "From View" in the auto's window when they go out of close scope,
it's one of the characteristics of autos window.

--
Terry Burns
http://TrainingOn.net
"Darrell Wesley" <Da***********@discussions.microsoft.com> wrote in message
news:A3**********************************@microsof t.com...
I have a form with several labels on it that ae filled in through code but
for some reason the contents disappear. Does anyone have a guess as to
what
might be happening?

Here is the part of the code where the problem occurs:

lblRunItem.Text = Item
txtCoilSpec.Text = CoilSpec
lblRunNo.Text = RunNo
lblOrdQty.Text = Qty
txtCore.Text = CGN
If CoreType = "I" Then

Single stepping thru the code and watching the "AUTO's" window I see the
lable contents being filled but when the code hits the "IF" test the
contents
become an EMPTY STRING, why? The contents of all 3 labels disappear, the
text
boxes are not impacted.

This code sets inside the KeyPress event of one of the text boxes on this
form. It makes no difference whether I add the "ME." on the front or not.


Nov 21 '05 #3
I found the problem. Turns out the "txtCore" has a "TextChanged" event that
causing the problem.

Thanks.

"Terry Burns" wrote:
Are they actually disapearing from the form itself or do they 'Appear' to
disapear when you are debugging. You have to remember that Auto's will
disapear "From View" in the auto's window when they go out of close scope,
it's one of the characteristics of autos window.

--
Terry Burns
http://TrainingOn.net
"Darrell Wesley" <Da***********@discussions.microsoft.com> wrote in message
news:A3**********************************@microsof t.com...
I have a form with several labels on it that ae filled in through code but
for some reason the contents disappear. Does anyone have a guess as to
what
might be happening?

Here is the part of the code where the problem occurs:

lblRunItem.Text = Item
txtCoilSpec.Text = CoilSpec
lblRunNo.Text = RunNo
lblOrdQty.Text = Qty
txtCore.Text = CGN
If CoreType = "I" Then

Single stepping thru the code and watching the "AUTO's" window I see the
lable contents being filled but when the code hits the "IF" test the
contents
become an EMPTY STRING, why? The contents of all 3 labels disappear, the
text
boxes are not impacted.

This code sets inside the KeyPress event of one of the text boxes on this
form. It makes no difference whether I add the "ME." on the front or not.


Nov 21 '05 #4
Cool

--
Terry Burns
http://TrainingOn.net
"Darrell Wesley" <Da***********@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
I found the problem. Turns out the "txtCore" has a "TextChanged" event that
causing the problem.

Thanks.

"Terry Burns" wrote:
Are they actually disapearing from the form itself or do they 'Appear' to
disapear when you are debugging. You have to remember that Auto's will
disapear "From View" in the auto's window when they go out of close
scope,
it's one of the characteristics of autos window.

--
Terry Burns
http://TrainingOn.net
"Darrell Wesley" <Da***********@discussions.microsoft.com> wrote in
message
news:A3**********************************@microsof t.com...
>I have a form with several labels on it that ae filled in through code
>but
> for some reason the contents disappear. Does anyone have a guess as to
> what
> might be happening?
>
> Here is the part of the code where the problem occurs:
>
> lblRunItem.Text = Item
> txtCoilSpec.Text = CoilSpec
> lblRunNo.Text = RunNo
> lblOrdQty.Text = Qty
> txtCore.Text = CGN
> If CoreType = "I" Then
>
> Single stepping thru the code and watching the "AUTO's" window I see
> the
> lable contents being filled but when the code hits the "IF" test the
> contents
> become an EMPTY STRING, why? The contents of all 3 labels disappear,
> the
> text
> boxes are not impacted.
>
> This code sets inside the KeyPress event of one of the text boxes on
> this
> form. It makes no difference whether I add the "ME." on the front or
> not.
>
>


Nov 21 '05 #5

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

Similar topics

2
by: Xerxes | last post by:
Hi, can you tell me how I can make a <label> hidden? I have hidden the field after the label: var M_Hide = isNS4?'hide':'hidden'; var M_Show = isNS4?'show':'visible'; ..... <label...
0
by: Giovane Calabrese | last post by:
ok. im try to make a multilanguage system based on that tutorial : http://www.123aspx.com/redir.aspx?res=29112 in my aspx pages all text are in labels , and i want to take the name labels...
7
by: Mike Casey | last post by:
Hello all, I have ASP.NET label controls tied to a datasource (so text will vary in length depending on the record). In IE everything looks great--text is wrapped if needed. In Netscape and...
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: Tom Scales | last post by:
OK, this one has me stumped. I am reading XML into a Dataset and then binding values to a label control. When displayed on the screen, the label control has the correct value in it. When I...
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...
0
by: tweakmy | last post by:
Hi to all expert, ladies coders and gentlemen coders, I m quite newbie in this. I just started vb.net not long ago..because i was too crazy bout making an application for my own phone. as for now, i...
1
by: drewski526 | last post by:
Hi, I wrote a small part of a larger program, and oddly enough, when i try to run it, the icons spontaneously appear and disappear when i mouse over them. background_img =...
2
by: Andy B | last post by:
I have the following listView control on a page: <asp:ListView ID="ListView1" runat="server" ItemPlaceholderID="PlaceHolder1"> <ItemTemplate> <dl> <dt>
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...
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...
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.