Solved

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

Posted on 2013-11-21
3
308 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
  • 2
3 Comments
 
LVL 24

Accepted Solution

by:
chaau earned 500 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

789 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