Solved

Resize an ActiveX in VB

Posted on 2003-11-03
4
221 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

808 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