?
Solved

Need location of a ListBox's SelectedItem so I can place another control right next to it.

Posted on 2013-11-21
3
Medium Priority
?
313 Views
Last Modified: 2013-11-21
I have a button on a form which needs to be moved right next to the selected item in a ListBox each time the user selects an item in that ListBox.  How can I get the y value of the selected item?
0
Comment
Question by:David L. Hansen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 25

Accepted Solution

by:
chaau earned 2000 total points
ID: 39667666
Use GetItemRectangle method. The method will return a Rectangle. Use Y property of the Rectangle for the y coordinate.
0
 
LVL 15

Author Comment

by:David L. Hansen
ID: 39667686
It was right under my nose :)
0
 
LVL 15

Author Closing Comment

by:David L. Hansen
ID: 39667688
Thanks
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question