Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I added a text box.I want to enter 5 digit numbers in this text box.And I want these numbers to be written as many lines as one by one.But when I add a textbox, it is added in the middle and adds side by side.How do I enter values ​​in textbox and keep them in a list?I want to search these values ​​in the corresponding column in the database.

For example:

TABLENAME:PERSON.DBO

PERSONID // PERSONNAME //PERSONDEPARTMENT

Enter textbox some ıd value and textbox include ID value.

Forexample:

1234

1235

1236

1245

1425

7845

This ıd's save list and list compare person table person column.

How to enter ıd's and keep in wpf?

What I have tried:

<TextBox x:Name="PersonIDtxt" ></TextBox>
Posted
Updated 30-Aug-19 18:29pm
Comments
Suvendu Shekhar Giri 30-Aug-19 23:36pm    
Can't you access using
yourTextBox.Text
?
Member 14169626 31-Aug-19 4:33am    
I am not ready for data binding, so I ask how to connect.

1 solution

Set TextWrapping to "Wrap" and make the text box high enough and / or wrap it in a ScrollViewer to accomodate the text.

One needs to hit "enter" after each number to "list them one by one".

Afterwards, treat the text box "text" as any other multi-line 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