G
Guest
I'm using VB.NET, and my basic problem is that I've got a textbox and an
subprocedure that handles the textchanged event...the textbox is supposed to
have a number entered into it, and then two other controls, labels, change to
reflect what that number represents.
So, you enter a number into the textbox, and the performance rating ("Good",
"Poor", etc.) appears in one label, and the score (8, 9, 10) appears in
another. My problem is how to reference the two label controls just by using
the sender parameter that exists in my textchanged event handler. All I've
got is the textbox, but I want to be able to refer to the two labels that
belong to that textbox, no matter which textbox was the one that just had
data entered into it.
I've tried entering the two labels into the controls collection of a given
textbox and then trying it that way, but it doesn't seem to do anything. Is
there an easy way to do this? Thanks.
subprocedure that handles the textchanged event...the textbox is supposed to
have a number entered into it, and then two other controls, labels, change to
reflect what that number represents.
So, you enter a number into the textbox, and the performance rating ("Good",
"Poor", etc.) appears in one label, and the score (8, 9, 10) appears in
another. My problem is how to reference the two label controls just by using
the sender parameter that exists in my textchanged event handler. All I've
got is the textbox, but I want to be able to refer to the two labels that
belong to that textbox, no matter which textbox was the one that just had
data entered into it.
I've tried entering the two labels into the controls collection of a given
textbox and then trying it that way, but it doesn't seem to do anything. Is
there an easy way to do this? Thanks.