Solved

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

Posted on 2013-11-21
3
307 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 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