|
-
Dec 9th, 2014, 08:44 AM
#1
Thread Starter
Junior Member
[RESOLVED] VB6 behaviour - form.frx / user control(s)
i have made a custom usercontrol - which contains other standard vb6 controls.
Suddenly i have detected that on special forms the "create new" or "delete" control (during designmode [place new control from the toolbox]) cause errors.
Other controls (of the same type) on the form got grey.
(kind of invalid .. similar if you change the code of the usercontrol in the background while a form with such a control is visible)
On a fresh form i could not reproduce this.
The affected form(s) are fitted with a ".frx" file and a couple of properties are stored in the frx file. (checked with a texteditor)
Multiline captions, other binary data is okay .. but in this case nearly all "font" properties are redirected as well.
This problem occures only in the IDE during the create or delete event of other controls.
(btw: the usercontrol terminate event of the other controls is not fired when this happens)
i have debugged now a while .. but i have still no clue how to fix this.
(i could reopen the form after each create/delete action .. but i want to avoid this)
Therefore the question to the round.
Did anyone had a similar problem - what was the workaround / solution?
OS: Win7 x64
VB6 Version: 6.0.9782
Thank you
Last edited by adix; Dec 9th, 2014 at 09:56 AM.
-
Dec 9th, 2014, 09:19 AM
#2
Re: VB6 behaviour - form.frx / user control(s)
Hard to tell from your description. When are the create/delete events triggered? Do you have any code in the usercontrol's Initialize event?
Regarding Terminate events. They won't get fired when it becomes grayed/hatched. When uncompiled, the event not fired when 'end' is executed via code or the toolbar
-
Dec 9th, 2014, 09:54 AM
#3
Thread Starter
Junior Member
Re: VB6 behaviour - form.frx / user control(s)
thanks for the Feedback - with create Event .. i mean (during designmode) in the IDE if i place a new control from the Toolbox on the form.
i didnt post any complexe code - because as mentioned .. i could not reproduce this on a fresh new form with no frx file. (same project / same instance)
Once the IDE create (due to any reason) a frx file per form .. the controls act as described.
--
update:
the project contains a few user dialogs. The issue ocures in the meanwhile independent of a frx file - but only on one form.
i matched the (core) form properties with a Texteditor -> identical.
i have transfered the logic and controls into a new form .. and removed the old buggy one from the project.
Lets focus on the project itself and skip this as a feature.
Last edited by adix; Dec 9th, 2014 at 10:42 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|