Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 3rd, 2007, 7:52 PM   #1
Zimmy
Newbie
 
Join Date: Oct 2006
Posts: 4
Rep Power: 0 Zimmy is on a distinguished road
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
Zimmy is offline   Reply With Quote
Old Feb 4th, 2007, 12:18 PM   #2
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,193
Rep Power: 5 lectricpharaoh will become famous soon enough
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
lectricpharaoh is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:45 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC