• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

Resize an ActiveX in VB

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. ?
1 Solution
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now