473,387 Members | 1,321 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ListView FocusedItem


When converting VB6 ListView code to DotNet, what do you do to replace the
ListView.FocusedItem object, specifically I want to reference
ListView.FocusedItem.Top

Thanks
Dave
Apr 11 '06 #1
2 3663
Dave,

The listview does have a focuseditem property .

http://msdn2.microsoft.com/en-us/lib...em(VS.80).aspx

You can get its top this way.
Me.lv1.FocusedItem.Bounds.Top

Ken
---------------
"Dave" <Ki************@community.nospam> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...

When converting VB6 ListView code to DotNet, what do you do to replace the
ListView.FocusedItem object, specifically I want to reference
ListView.FocusedItem.Top

Thanks
Dave

Apr 12 '06 #2
Hi Dave,
Thanks for posting. From your post, my understanding on this issue is: You
don¡¯t know how to get the ListView FocusedItem's Top property when
converting VB6 ListView code to DotNet. If I¡¯m off base, please feel free
to let me know.
ListView still has FocusedItem property in DotNet. You can use the
ListView¡¯s FocusedItem property just as you do in VB6. In DotNet,
ListView¡¯s FocusedItem is a ListViewItem type. To get the ListView
FocusedItem's Top property, you'd use the sentences as following:
dim top as integer
top = Me.ListView1.FocusedItem.Bounds.Top
Please let me know if you have any other concerns, or need anything else.

Sincerely,
Linda Liu
Microsoft Online Community Support

================================================== ==
When responding to posts,please "Reply to Group" via
your newsreader so that others may learn and benefit
from your issue.
================================================== ==

Apr 12 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Alberto | last post by:
I need a listview where the user can select the items with the arrow keys but I also want that it works in a circular way: if you are in the first item and press key up, the last item is selected...
3
by: ¿ Mahesh Kumar | last post by:
Hi groups,I've placed a listview control and four buttons two navigate inside the list view. Let say . I have written code for <<, >> :)..even for <,> also..but i'm getting error in...
4
by: Jan | last post by:
How do i get the index of a selected item from a listview, I know how it works for a listbox. But I can't figure it out for a listview? Another newbee question By the way, thx for the answers...
10
by: A_PK | last post by:
I am writing mobile application using Vb.net when i click the last row of list view, and try to delete it.... will promtpy the following message "Additional information:...
6
by: Josef Brunner | last post by:
Hi, I have a problem using two ListView controls on one and the same form: Problem: The second ListView is never focused. No matter where I "click" non of the items within the ListView is...
0
by: George | last post by:
This is driving me crazy. I have a listview that has LabelEdit set to true. In the AfterLabelEdit event, I do my validation on the label text. If the label isn't valid, it sets e.canceledit = true...
2
by: Dave | last post by:
When converting VB6 ListView code to DotNet, what do you do to replace the ListView.FocusedItem object, specifically I want to reference ListView.FocusedItem.Top Thanks Dave
5
by: Bart Steur | last post by:
Hi, What's the best way to programmaticly select (click) another listview Item after removing the selected/focused one. using VB2005 Express. Thanks Bart
1
by: Joza | last post by:
Hi! I'm getting error when selecting items in ListView control, it says ArguementOutOfRangeExceptions. That happens in SelectIndexChange event. I have tryed with try...catch but there's no...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.