TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Muhammad Ali
NA
47
23.5k
Displaying Lines in separate message boxes
Oct 2 2017 1:22 PM
Hello everyone,
I am working on a UWP app. It consists of a multiline textbox. I want to display each of the line in a separate message box. I have tried the below code:
String[] lines = textBox.Text.Split(new char[] {'\n' }, StringSplitOptions.None);
foreach (string l in lines)
{
Windows.UI.Popups.MessageDialog dlg = new
Windows.UI.Popups.MessageDialog(l);
await dlg.ShowAsync();
}
But it is showing all the lines in a single texbox. And I also found that the Textbox.Lines property does not work in UWP. So kindly help me as how can I display each line in a Separate MessageBox.
Thanks.
Reply
Answers (
1
)
How to get value from two diffrent tables
Select a folder using OpenFileDialog folder