-
usercontrol position in parent window
Is it possible to find out a usercontrol's position within its parent window
i.e. not screen position (as returned by GetWindowRect)?
Alex
-
Re: usercontrol position in parent window
Hi Alex --
> Is it possible to find out a usercontrol's position within its parent window
> i.e. not screen position (as returned by GetWindowRect)?
Just call GetWindowRect on UserControl.hWnd and GetParent(UserControl.hWnd) and do a
little math. Either that, or take a look at the Extender.Top and Extender.Left props
(with error trapping, because not all hosts implement these!).
Later... Karl
--
http://www.mvps.org/vb
-
Re: usercontrol position in parent window
Hi Alex --
> Is it possible to find out a usercontrol's position within its parent window
> i.e. not screen position (as returned by GetWindowRect)?
Just call GetWindowRect on UserControl.hWnd and GetParent(UserControl.hWnd) and do a
little math. Either that, or take a look at the Extender.Top and Extender.Left props
(with error trapping, because not all hosts implement these!).
Later... Karl
--
http://www.mvps.org/vb
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks