Sunday, July 12, 2009

How to calculate one text box to another text tab index in c#.net?

i am developing one software project based on c#.net in my web server that project i have been faced in one problem that problem is text box has been not calculated in one text box to another text in tab index. please give me answer to my questions????????????????????????

How to calculate one text box to another text tab index in c#.net?
If you mean, how can you display a value in another text box based on entry in a different text box, you can use the .Text property of the target text box and the .TextChanged property on the source text box:





Sub TBSource_textChanged(Object Sender, EventArgs E)


String strOutput;


strOutput = tbSource.Text.Len();


TBDest.Text = strOutput;


End Sub





If you mean, you want a different text box to take focus on a given text box's text being changed, you again use .Textchanged event from the source and the Focus event on the destination (Focus is new in .NET):





Sub TBSource_textChanged(Object Sender, EventArgs E)


TBDest.Focus();


End Sub
Reply:Please explain this line


text box has been not calculated in one text box to another text

rosemary

No comments:

Post a Comment