Solved

Resize an ActiveX in VB

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now