Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
Questionlistview scrolling Pin
Green Fuze19-Aug-06 22:49
Green Fuze19-Aug-06 22:49 
Hi everybody!

I wrote a search option for a listview.
when the item is found I used these commands to show the user where is the item he is looking for:
this.lvUser.Items[yPosition].Selected = true;
this.lvUser.Items[yPosition].Focused = true;

the problem is that I want the listview to scroll to the specific item I just focused on. currently if I cannot see the item (I need to scroll to it), the listview wouldn't scroll to it.

does anyone have any idea how to scroll the listview to the focused item?
Thanks!!!
AnswerRe: listview scrolling Pin
Nader Elshehabi19-Aug-06 23:25
Nader Elshehabi19-Aug-06 23:25 
GeneralRe: listview scrolling Pin
Green Fuze20-Aug-06 1:10
Green Fuze20-Aug-06 1:10 
QuestionOleDbCommand - Command Error Pin
Mike Jeferson19-Aug-06 22:23
Mike Jeferson19-Aug-06 22:23 
AnswerRe: OleDbCommand "Command Error" Pin
beatles169219-Aug-06 23:00
beatles169219-Aug-06 23:00 
GeneralRe: OleDbCommand "Command Error" [modified] Pin
Mike Jeferson19-Aug-06 23:17
Mike Jeferson19-Aug-06 23:17 
AnswerRe: OleDbCommand - Command Error Pin
Nader Elshehabi19-Aug-06 23:54
Nader Elshehabi19-Aug-06 23:54 
QuestionZooming Pin
Aslam Bari19-Aug-06 19:43
Aslam Bari19-Aug-06 19:43 
AnswerRe: Zooming Pin
Dave Kreskowiak19-Aug-06 20:43
mveDave Kreskowiak19-Aug-06 20:43 
QuestionHow to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
hongheo7619-Aug-06 18:41
hongheo7619-Aug-06 18:41 
AnswerRe: How to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
Dave Kreskowiak19-Aug-06 20:41
mveDave Kreskowiak19-Aug-06 20:41 
AnswerRe: How to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
Stefan Troschuetz19-Aug-06 22:33
Stefan Troschuetz19-Aug-06 22:33 
AnswerRe: How to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
Mircea Grelus20-Aug-06 1:14
Mircea Grelus20-Aug-06 1:14 
AnswerRe: How to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
Mircea Grelus20-Aug-06 1:20
Mircea Grelus20-Aug-06 1:20 
AnswerRe: How to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
Ista20-Aug-06 6:32
Ista20-Aug-06 6:32 
QuestionExtracting NetworkCredentials from WebBrowser? Pin
E. Beeton19-Aug-06 15:21
E. Beeton19-Aug-06 15:21 
AnswerRe: Extracting NetworkCredentials from WebBrowser? Pin
Nader Elshehabi20-Aug-06 1:45
Nader Elshehabi20-Aug-06 1:45 
GeneralRe: Extracting NetworkCredentials from WebBrowser? Pin
E. Beeton20-Aug-06 6:04
E. Beeton20-Aug-06 6:04 
QuestionArrayList Delete Both Identical Strings? Pin
gman4419-Aug-06 13:01
gman4419-Aug-06 13:01 
AnswerRe: ArrayList Delete Both Identical Strings? Pin
Christian Graus19-Aug-06 13:15
protectorChristian Graus19-Aug-06 13:15 
AnswerRe: ArrayList Delete Both Identical Strings? Pin
Stefan Troschuetz19-Aug-06 22:11
Stefan Troschuetz19-Aug-06 22:11 
QuestionInvalidate wont actually do what I need to do Pin
Ista19-Aug-06 12:29
Ista19-Aug-06 12:29 
AnswerRe: Invalidate wont actually do what I need to do Pin
Guffa19-Aug-06 13:22
Guffa19-Aug-06 13:22 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista19-Aug-06 14:00
Ista19-Aug-06 14:00 
AnswerRe: Invalidate wont actually do what I need to do Pin
Guffa19-Aug-06 14:21
Guffa19-Aug-06 14:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.