?
Solved

Resize an ActiveX in VB

Posted on 2003-11-03
4
Medium Priority
?
233 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
1 Comment
 
LVL 26

Accepted Solution

by:
EDDYKT earned 80 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses

839 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