![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2006
Posts: 4
Rep Power: 0
![]() |
Get physical location of UserControl on screen
Hi.
I'm trying to make a custom combo box in C#, I need to get the physical location of the UserControl to help create the dropdown, is there any API call that I can do this easily with? Thanks. c |
|
|
|
|
|
#2 |
|
SEXY SHOELESS GOD OF WAR!
![]() Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,193
Rep Power: 5
![]() |
I'm assuming you mean a custom control derived from the UserControl class, as opposed to a generic use of the term. In this case, see this page; you can use the various properties to determine the position and size relative to the parent container (often, this will be the client area of the form holding the control, but may be another control, such as a Panel).
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Slackware installation guide for Linux beginners | coldDeath | Coder's Corner Lounge | 104 | Jul 29th, 2007 5:40 AM |
| Wierd compile Error. Need help please. | Keiyentai | Java | 7 | Aug 19th, 2006 2:35 AM |
| Getting size of user's screen | elford | Java | 1 | Jan 1st, 2006 5:09 AM |
| Senior Capstone-Spying Screen Saver | Hounder | Project Ideas | 23 | Dec 16th, 2005 8:00 PM |
| Conversions | Sane | Python | 12 | Apr 28th, 2005 7:25 AM |