Print Page | Close Window

VB6 - Form Increasing Size

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=12711
Printed Date: 03 May 2024 at 5:14am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: VB6 - Form Increasing Size
Posted By: b4gn0
Subject: VB6 - Form Increasing Size
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net