Hi!!!
I have made a window application in which when a string is entered in textbox , the related links are displayed in listview.
Since ,there can be any number of links related to that string. So,I want to display only 5-7 links at a time in listview and on clicking on "NEXT" button it should display other links.But at a time there should be only 5-7 links in listview .Like in google search we have some links on one page and as we click on next we can see other links.Similar functionality I want in window application.
Can anyone help me in this.............. :pretty:
avirag 10 Posting Whiz
Recommended Answers
Jump to PostTry something like this.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace daniweb.paging { public partial class Form1 : Form { private const int RECORDS_PER_PAGE = 10; private List<string> lstAllLinks; private List<string> currentSearchResults; private int curPage; private int …
Jump to PostEither way is fine. I was just keeping it simple for the sake of readability.
Please mark this thread as solved if you have found an answer to your question and good luck!
Jump to PostI remeber this search code from somewhere ... ;)
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace CompareString { public partial class Form1 : Form { // private const int RECORDS_PER_PAGE = 5; // private SearchResult[] currentSearchResults; private …
All 9 Replies
sknake 1,622 Senior Poster Featured Poster
Geekitygeek 480 Nearly a Posting Virtuoso
sknake 1,622 Senior Poster Featured Poster
avirag 10 Posting Whiz
sknake 1,622 Senior Poster Featured Poster
avirag 10 Posting Whiz
avirag 10 Posting Whiz
sknake 1,622 Senior Poster Featured Poster
avirag 10 Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.