Solved

moving a usercontrol

Posted on 2001-06-04
3
251 Views
Last Modified: 2010-05-02
I am writing a usercontrol (ActiveX control).
The thing is, I want it to move when I drag it arround, however, I can not access the left and top properties of the "usercontrol" nor can I find a move or moveto method.

How can I move a custom control from within its own code?
0
Comment
Question by:SADiver
  • 2
3 Comments
 

Author Comment

by:SADiver
ID: 6152592
something like
me.left=x
me.top=y....
0
 
LVL 3

Accepted Solution

by:
RodStephens earned 100 total points
ID: 6152602
The Extender object provides access to the UserControl's Left, Top, Width, and Height properties, and to its Move method.

'    Extender.Left = Extender.Left + 240
'    Extender.Top = Extender.Top + 240
    Extender.Move _
        Extender.Left + 240, _
        Extender.Top + 240, _
        Extender.Width - 240, _
        Extender.Height - 240
0
 

Author Comment

by:SADiver
ID: 6152652
Thanks man....
Working 100%!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Basic Excel Formatting error 4 108
using web browser with BING 40 122
Help me. 3 56
Publisher:   Unknown     VB.exe Application 1 21
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

821 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