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
Sabari Prabu
NA
10
2.6k
How to filter lines in textbox
Apr 28 2015 1:44 AM
I have three radio buttons. When i press every button the text in textbox should get filtered according to that.
for example: if lastlog radio button is clicked only last 5 lines should appear
if lastfiveradio button is clicked only last 25 lines should appear
How can i do that?
if (lastlogradio.Checked == true)
{
StreamReader objstream = new StreamReader(listBox1.Items[listBox1.SelectedIndex].ToString());
resulttxtbox.Text = objstream.ReadToEnd();
}
else if (lastfiveradio.Checked == true)
{
StreamReader objstream = new StreamReader(listBox1.Items[listBox1.SelectedIndex].ToString());
resulttxtbox.Text = objstream.ReadToEnd();
}
else if (alllogsradio.Checked == true)
{
StreamReader objstream = new StreamReader(listBox1.Items[listBox1.SelectedIndex].ToString());
resulttxtbox.Text = objstream.ReadToEnd();
}
Reply
Answers (
2
)
Structured table for search option.
When i make listbox without extension i am facing exception