Solved

Resize an ActiveX in VB

Posted on 2003-11-03
4
222 Views
Last Modified: 2010-05-03
Hello there,
I have an mfc programmed ActiveX running in a VB form. The location of ActiveX control is in Lower right corner.I want that whenever I resize the form, the ActiveX is also resized accordingly.
Does anybody have a soultion for it. ?
0
Comment
Question by:barkhamadan1
4 Comments
 
LVL 26

Accepted Solution

by:
EDDYKT earned 20 total points
ID: 9671064
Just do

Private Sub Form_Resize()

    On Error Resume Next
    StatusUC1.Height = Me.ScaleHeight
    StatusUC1.Width = Me.ScaleWidth
End Sub


where StatusUC1 is your ActiveX control
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

756 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