Hi Justin,
Your attached project could not be opened. It looks, it was just a solution not any source file..
Anyway, to move item (link in this case) in Listview, you need to basically bubble up the selected item unless its index position is reached at top. Suppose you have some links in a list view as:
private void Form1_Load(object sender, EventArgs e)
{
listView1.Items.Add("http:\\www.yahoo.com");
listView1.Items.Add("http:\\www.google.com");
listView1.Items.Add("http:\\www.gmail.com");
listView1.Items.Add("http:\\www.hotmail.com");
listView1.Items.Add("http:\\www.youtube.com");
listView1.Items.Add("http:\\www.wright.edu");
}
Now you select an item on a listview and click a button for selection (...you don't need basically a seperate button for link clicking, but here for the sake of simplicity I made it seperate. You may put the same logic on ListViewItemSelectionChanged event handler)
private void btnLinkSelect_Click(object sender, EventArgs e)
{
while (listView1.SelectedItems[0].Index != 0)
{
MoveUp();
}
}
private void MoveUp()
{
int indexs = (listView1.SelectedItems[0].Index) - 1;
if (indexs > -1)
{
//Bubbling up item by swaping values
string current = listView1.SelectedItems[0].Text;
string aboveOne = listView1.Items[indexs].Text;
listView1.SelectedItems[0].Text = aboveOne;
listView1.Items[indexs].Text = current;
ListViewItem nextItem = listView1.Items[indexs];
nextItem.Selected = true;
listView1.Items[indexs + 1].Selected = false;
listView1.Focus();
listView1.Refresh();
}
else
{
ListViewItem nextItem = listView1.SelectedItems[0];
nextItem.Selected = true;
listView1.Focus();
}
}
On running this program, we see following screen before pressing LinkSelect button:

and after clicking LinkSelect button, items are bubbled up to the top and you would see like:

Hope it might be helpful for you! if it works for you, you may make this answer as an accepted.
Hemant Srivastava
Software Developer
MVP (C# Corner)http://hemant-srivastava.blogspot.com/Please mark this answer as
accepted answer if it resolves your problem.