Click here to Skip to main content
15,885,842 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello i want to set the textbox array to index 1 only
i put the textbox in winform and set it to multi-line and i want to show value at array[1] only and it show not go above it and at textbox array[0] nothing should be show there

so how i can do that?
Posted
Comments
ZurdoDev 2-Sep-14 16:36pm    
What?
tjnapster555 2-Sep-14 16:42pm    
i want to make textbox not to show 2 and 3rd line if you see win 8 calculator its multi-line but they fixed it to array size to 2 only and text show at index l only and index 0 is empty
tjnapster555 2-Sep-14 16:42pm    
i want to make textbox not to show 2 and 3rd line if you see win 8 calculator its multi-line but they fixed it to array size to 2 only and text show at index l only and index 0 is empty
Sergey Alexandrovich Kryukov 2-Sep-14 17:16pm    
What does it mean? Why doing that?
—SA
George Jonsson 2-Sep-14 21:42pm    
You can always create your own customized component that inherits from TextBox.
Then you can tweak the behavior as you want.

1 solution

You can use the Format and Parse event of the Databinding to add/remove an empty line to whatever it is you're binding to the TextBox (e.g. add/remove \r\n to the beginning of the string).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900