G
Guest
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.
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.