Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - VB6 - Form Increasing Size
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

VB6 - Form Increasing Size

 Post Reply Post Reply
Author
Message
b4gn0 View Drop Down
Groupie
Groupie


Joined: 26 November 2007
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote b4gn0 Quote  Post ReplyReply Direct Link To This Post Topic: VB6 - Form Increasing Size
    Posted: 18 November 2008 at 5:35am
Language is VB6




Each time i run the application, this form increases in heigth (please note, i use the commandbars control just for a popup menu with icons in this form) both in designtime and in runtime.

I run this code in the form_load event to prevent an empty bar to be shown:

   With comBarsMenu
      Call .EnableCustomization(False)
      Call .DeleteAll
      Set mobjPopupMenu = .Add("Popup", xtpBarPopup)   'module popup variable
   End With

Everything works perfect except for the increasing-size issue.

More info: this form is included inside an external dll. We use the SetParent Windows API to attach it to the main form (causing it to become some sort of MDI Child, avoiding it to be moved outside of the main form sizes), after the Form_Load event is fired.

Best regards,
Alex
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.133 seconds.